/* NeoLaw public site
   One typeface (Inter). Palette taken from the logo: teal #1DD7CF on near-black.
   Every text colour clears 4.5:1 against the surface it sits on. */

@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #030607;
  --ink-1: #070C0E;
  --ink-2: #0A1114;
  --ink-3: #0F181C;
  --ink-4: #172329;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .22);
  --text: #F4F8F8;
  --text-2: #B6C4C6;
  --text-3: #8A9C9F;
  --teal: #1DD7CF;
  --teal-hi: #7CF3EC;
  --teal-ink: #021B1A;
  --teal-soft: rgba(29, 215, 207, .11);
  --teal-line: rgba(29, 215, 207, .34);
  --red: #FF8A80;
  --red-soft: rgba(255, 138, 128, .12);
  --amber: #F3BC55;
  --amber-soft: rgba(243, 188, 85, .13);
  --blue: #9DB8FF;
  --blue-soft: rgba(157, 184, 255, .12);
  --r: 16px;
  --r-lg: 24px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --edge: linear-gradient(155deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 28%, rgba(29, 215, 207, .05) 62%, rgba(29, 215, 207, .32));
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); touch-action: pan-x pan-y; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  color: var(--text-2);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 86% -6%, rgba(29, 215, 207, .12), transparent 62%),
    radial-gradient(900px 700px at -12% 18%, rgba(14, 96, 116, .14), transparent 60%),
    var(--bg);
  background-repeat: repeat, no-repeat, no-repeat, repeat;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
b, strong { font-weight: 600; color: var(--text); }
ins { text-decoration: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(29, 215, 207, .32); color: #fff; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 80px, var(--wrap)); } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--teal); color: var(--teal-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.label {
  font-size: 12.5px; line-height: 1.3; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.teal { color: var(--teal); }

/* Reading progress, drawn by the browser itself where supported */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 2px; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal), var(--teal-hi));
  box-shadow: 0 0 12px rgba(29, 215, 207, .7);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(180deg, #45E8E0, #17C6BF); color: var(--teal-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px rgba(29, 215, 207, .4), 0 16px 40px -14px rgba(29, 215, 207, .7);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 1px rgba(29, 215, 207, .5), 0 20px 50px -12px rgba(29, 215, 207, .85); }
.btn-primary:hover::after { left: 120%; }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 999px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: 15px; font-weight: 600; text-decoration: none;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header: a floating glass bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; pointer-events: none; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -14px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, var(--bg) 18%, rgba(3, 6, 7, .78) 58%, transparent);
}
.nav.scrolled::before { opacity: 1; }
.nav-in {
  position: relative; z-index: 2; pointer-events: auto;
  display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 9px 0 22px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(6, 11, 13, .46);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.nav.scrolled .nav-in, .nav.open .nav-in {
  background: rgba(6, 11, 13, .84); border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 44px -26px rgba(0, 0, 0, .95);
}
.brand { display: inline-flex; flex: none; }
.brand img { display: block; height: 22px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a, .nav-signin {
  padding: 8px 13px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-signin:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.menu-btn {
  display: none; position: relative; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--text);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.nav.open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: 0; z-index: 1; pointer-events: auto; overflow-y: auto;
  padding: 100px 0 max(28px, env(safe-area-inset-bottom));
  background: rgba(3, 6, 7, .95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a {
  position: relative; display: flex; align-items: center; min-height: 66px;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 26px; font-weight: 600; letter-spacing: -.035em; text-decoration: none;
  animation: rise .5s var(--ease) both;
}
.nav-sheet a::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border: solid var(--teal); border-width: 1.5px 1.5px 0 0; transform: translateY(-50%) rotate(45deg);
}
.nav-sheet a:nth-child(2) { animation-delay: .04s; }
.nav-sheet a:nth-child(3) { animation-delay: .08s; }
.nav-sheet a:nth-child(4) { animation-delay: .12s; }
.nav-sheet a:nth-child(5) { animation-delay: .16s; }
.nav-sheet a:nth-child(6) { animation-delay: .2s; }
.nav-sheet a:nth-child(7) { animation-delay: .24s; }
.nav-sheet a:nth-child(8) { animation-delay: .28s; }
.nav-sheet a:nth-child(9) { animation-delay: .32s; }
.nav-sheet a:last-child { color: var(--teal); }
.nav-sheet a { min-height: 60px; }
@media (max-width: 860px) {
  .nav-links, .nav-signin { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .nav-in { padding-left: 18px; }
  .brand img { height: 20px; }
}
@media (min-width: 861px) { .nav-sheet { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: calc(100svh - 82px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -82px 0 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 78% 46%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 62% at 78% 46%, #000 0%, transparent 72%);
  opacity: .5;
}
.hero-orbit {
  --orbit-rgb: 29,215,207; --orbit-hi-rgb: 230,255,253; --orbit-chip-rgb: 4,16,17; --orbit-core: #041313;
  position: absolute; inset: -82px 0 0; width: 100%; height: calc(100% + 82px); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 62%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 22%, #000 62%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}
.hero > .wrap {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(36px, 6vh, 80px) clamp(22px, 4vh, 45px);
}
.hero-head { position: relative; }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.052em;
  font-weight: 600; color: var(--text);
}
h1 .ln { display: block; text-wrap: balance; }
.tc-del {
  color: rgba(255, 138, 128, .82); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 57% / 100% .06em;
}
.tc-ins {
  color: var(--teal);
  text-decoration: underline; text-decoration-thickness: .045em; text-underline-offset: .13em;
  text-shadow: 0 0 60px rgba(29, 215, 207, .55);
}
h1.rejected .tc-del { color: var(--text); background-size: 0 .06em; animation: none; }
h1.rejected .tc-ins { display: none; }
@keyframes strike { from { background-size: 0 .06em; } to { background-size: 100% .06em; } }
@keyframes insert { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.balloon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  width: fit-content; max-width: 100%; margin-top: 28px; padding: 10px 10px 10px 16px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(rgba(9, 15, 18, .9), rgba(9, 15, 18, .9)) padding-box, var(--edge) border-box;
  font-size: 14px;
}
.balloon-top {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.balloon-top span { color: var(--teal); }
.balloon-row { display: flex; gap: 8px; }
.balloon-row span { color: var(--text-3); }
.balloon del { color: var(--red); }
.balloon ins { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.balloon-actions { display: flex; gap: 6px; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: background .15s, border-color .15s, transform .15s;
}
.chip:hover { background: rgba(255, 255, 255, .09); border-color: var(--line-3); }
.chip:active { transform: scale(.96); }
.chip-solid { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); font-weight: 600; }
.chip-solid:hover { background: var(--teal-hi); border-color: var(--teal-hi); }

.lede { max-width: 620px; margin-top: 30px; font-size: clamp(17px, 1.5vw, 19px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }

.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 7vh, 80px);
  border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(rgba(8, 13, 16, .78), rgba(8, 13, 16, .78)) padding-box, var(--edge) border-box;
}
.trust > div { padding: 20px 26px 22px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; }
.trust dt { color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.trust dd { margin-top: 3px; font-size: 14px; color: var(--text-3); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(61px, 8vw, 120px) 0; }
.sec::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 22%, rgba(29, 215, 207, .3) 50%, var(--line-2) 78%, transparent);
}
.sec-first { padding-top: clamp(22px, 3.2vw, 45px); }
.sec-first::before { display: none; }
.sec-head { margin-bottom: clamp(32px, 5vw, 60px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 5px 15px 5px 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .035);
  color: var(--text); font-size: 14px; font-weight: 600;
}
.kicker .idx {
  display: grid; place-items: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal); font-size: 12.5px; font-variant-numeric: tabular-nums;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.03; letter-spacing: -.045em;
  font-weight: 600; color: var(--text); text-wrap: balance;
}
h2 .soft { display: block; color: var(--text-3); }
.sec-lede { max-width: 62ch; margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); }

/* ---------- Window: the frame every live demonstration sits in ---------- */
.window {
  position: relative; overflow: hidden;
  border: 1px solid transparent; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0C1518 0%, #070D0F 100%) padding-box, var(--edge) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 50px 100px -50px #000, 0 0 140px -60px rgba(29, 215, 207, .4);
}
.win-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  min-height: 58px; padding: 12px 20px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018);
}
.win-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-width: 0; font-size: 14px; }
.win-sub { color: var(--text-3); }
.win-sub::before { content: "· "; }
.win-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-3); }
.win-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  padding: 14px 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-3);
}
.replay {
  display: none; align-items: center; gap: 6px; flex: none;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
}
.motion .replay { display: inline-flex; }
.replay:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.replay:hover svg { transform: rotate(-40deg); }
.replay svg { transition: transform .3s var(--ease); }

/* A thread of light that travels round the edge of the main frames */
.beam::after {
  content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 72%, rgba(29, 215, 207, .0) 76%, rgba(29, 215, 207, .95) 88%, #EFFFFE 91%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* A soft light that follows the pointer across a card */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(29, 215, 207, .13), transparent 62%);
  transition: opacity .35s;
}
@media (hover: hover) { .spot:hover::before { opacity: 1; } }

/* Shared by the live demonstrations */
.gone { display: none !important; }
.appear { animation: appear .5s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.typed { color: var(--text); }
.untyped { visibility: hidden; }
.caret { position: relative; }
.caret::after {
  content: ""; position: absolute; left: 1px; bottom: -.12em; width: 2px; height: 1.15em; border-radius: 1px;
  background: var(--teal); box-shadow: 0 0 10px var(--teal); opacity: 0;
}
.typing .caret::after { opacity: 1; animation: blink .9s step-end infinite; }

/* ---------- Legal Agent: the chat ---------- */
/* The agent's badge is the N of the logo, cut from the logo file itself */
.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--teal-line); background: #06191A;
}
.mark::before {
  content: ""; width: 12px; height: 13px;
  background: url("assets/neolaw-logo.webp") 0 -2.9px / 89.6px auto no-repeat;
}
.mark-lg { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 26px -6px rgba(29, 215, 207, .7); }
.mark-lg::before { width: 18px; height: 19.5px; background-position: 0 -4.3px; background-size: 134.4px auto; }
.chat .win-title { align-items: center; }
.chat .win-title .mark { margin-right: 4px; }
.chat .ag-count { font-variant-numeric: tabular-nums; }

.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.chat-main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.chat-main::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 0%, rgba(29, 215, 207, .07), transparent 70%);
}
.chat-view { position: relative; flex: 1; padding: 26px; scrollbar-width: none; }
.chat-view::-webkit-scrollbar { display: none; }
.motion .chat-view { flex: none; height: var(--chat-h, 640px); overflow: hidden; }
.motion .chat-view.done { overflow-y: auto; }
.chat-view::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: url("assets/neolaw-logo.webp") center / 168px auto no-repeat;
}
.chat-view.empty::before { opacity: .13; }
.chat-flow { position: relative; display: flex; flex-direction: column; gap: 20px; transition: opacity .28s; }
.chat-flow.fading { opacity: 0; }
.chat-measure { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }

.msg-user {
  align-self: flex-end; max-width: min(560px, 90%); padding: 14px 18px;
  border: 1px solid rgba(29, 215, 207, .32); border-radius: 20px 20px 6px 20px;
  background: linear-gradient(180deg, rgba(29, 215, 207, .22), rgba(29, 215, 207, .1));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 14px 34px -16px rgba(29, 215, 207, .55);
  color: var(--text); line-height: 1.45;
}
.msg-user .untyped { display: none; }
.msg-agent { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.msg-body { min-width: 0; }

.research {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
}
.research::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: calc(var(--p, 1) * 100%);
  background: linear-gradient(90deg, rgba(29, 215, 207, .2), var(--teal)); box-shadow: 0 0 12px rgba(29, 215, 207, .8);
  transition: width .5s var(--ease);
}
.steps { padding: 8px 16px; }
.step { display: grid; grid-template-columns: 18px auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 7px 0; }
.tick {
  position: relative; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--text-3); background: #0C1417;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.step.done .tick { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 12px rgba(29, 215, 207, .5); }
.step.done .tick::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4.5px; height: 8.5px;
  border: solid var(--teal-ink); border-width: 0 1.8px 1.8px 0; transform: rotate(42deg);
}
.step.cur .tick { border-color: var(--teal); border-top-color: transparent; animation: spin .7s linear infinite; }
.step b { font-size: 15px; line-height: 1.45; white-space: nowrap; }
.step.cur b {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--text-2) 0%, var(--text-2) 35%, #fff 50%, var(--text-2) 65%, var(--text-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.step-q { font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--teal); white-space: nowrap; transition: opacity .3s; }
.step.cur em { opacity: 0; }

.answer { margin-top: 20px; }
.answer-big {
  margin-bottom: 8px; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1;
  letter-spacing: -.045em; font-weight: 600; color: var(--text);
}
.answer p { max-width: 62ch; }
.answer .stream + .stream { margin-top: 10px; }
.stream > * { animation: word .3s ease-out both; }
@keyframes word { from { opacity: 0; } }
.stream.live::after {
  content: ""; display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; border-radius: 2px;
  background: var(--teal); box-shadow: 0 0 12px var(--teal); vertical-align: -.16em; animation: blink .8s step-end infinite;
}
.cite {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 6px;
  background: var(--teal-soft); color: var(--teal);
  font-size: 12.5px; font-weight: 600; line-height: 1; vertical-align: .2em;
  transition: background .3s, color .3s, box-shadow .3s;
}
.cite.ok { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(29, 215, 207, .18), 0 0 16px rgba(29, 215, 207, .6); }
.cmd {
  display: inline-block; padding: 2px 10px; border-radius: 8px;
  border: 1px solid rgba(29, 215, 207, .26); background: var(--teal-soft);
  color: var(--teal); font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.cmd-plain { border-color: var(--line-2); background: rgba(255, 255, 255, .06); color: var(--text); }

.sources { padding: 24px 20px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.label-sub { margin: 20px 0 8px; font-weight: 500; }
.src {
  display: grid; gap: 3px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .035);
  transition: border-color .45s, box-shadow .5s, background .45s;
}
.src > * { transition: opacity .45s; }
.src b { font-size: 15px; line-height: 1.35; }
.src span { font-size: 14px; color: var(--text-3); }
.src .src-tag { color: var(--teal); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; }
.src.ghost { border-style: dashed; background: transparent; }
.src.ghost > * { opacity: 0; }
.src-cited.lit { border-color: var(--teal-line); box-shadow: 0 0 0 3px rgba(29, 215, 207, .07), 0 0 40px -10px rgba(29, 215, 207, .6); }
.src-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

.principles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(rgba(8, 13, 16, .8), rgba(8, 13, 16, .8)) padding-box, var(--edge) border-box;
}
.principles li { padding: 26px 28px 28px; border-left: 1px solid var(--line); }
.principles li:first-child { border-left: 0; }
.principles h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: var(--text); }
.principles p { margin-top: 8px; font-size: 15px; }

.skills { margin-top: clamp(64px, 8vw, 110px); }
.skills-head h3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 600; color: var(--text); }
.skills-head p { max-width: 58ch; margin-top: 10px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.skills-grid li {
  padding: 24px 24px 26px; border: 1px solid transparent; border-radius: 20px;
  background: linear-gradient(180deg, #0B1316, #070C0E) padding-box, var(--edge) border-box;
  transition: transform .3s var(--ease), box-shadow .3s;
}
@media (hover: hover) { .skills-grid li:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -34px rgba(29, 215, 207, .55); } }
.skills-grid h4 { margin-top: 18px; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; color: var(--text); }
.skills-grid p { margin-top: 6px; font-size: 15px; line-height: 1.55; }

/* ---------- Case law ---------- */
.search { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.search .mark-lg { width: 38px; height: 38px; transition: box-shadow .3s; }
.search.typing .mark-lg { box-shadow: 0 0 30px -4px rgba(29, 215, 207, .95); }
.query { flex: 1; min-width: 0; color: var(--text); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.also .label { margin-right: 6px; }
.term {
  padding: 5px 13px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .24);
  font-size: 14px; color: var(--text-2); transition: opacity .3s, transform .3s var(--ease);
}
.term.pend { opacity: 0; transform: translateY(5px) scale(.96); }
.stages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.stage { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); transition: color .25s; }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); box-shadow: 0 0 0 1px var(--line-2); transition: background .25s, box-shadow .25s; }
.stage.done { color: var(--text-2); }
.stage.done::before, .stage.cur::before { background: var(--teal); box-shadow: 0 0 10px rgba(29, 215, 207, .8); }
.stage.cur { color: var(--text); }
.stage.cur::before { animation: blink .8s ease-in-out infinite; }
.stage-count { margin-left: auto; min-height: 1.6em; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }

.cases { display: grid; gap: 12px; padding: 20px; }
.case {
  position: relative; overflow: hidden; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03);
  transition: border-color .25s, background .25s;
}
.case > * { transition: opacity .45s; }
@media (hover: hover) { .case:hover { border-color: var(--line-3); } }
/* A result that has not arrived yet shows as an outline, with a light sweep while the search runs */
.case.pend { border-style: dashed; background: rgba(255, 255, 255, .01); }
.case.pend > * { opacity: 0; }
.cases.loading .case.pend::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .055) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: shimmer 1.5s linear infinite;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2);
}
.tag-on { background: var(--teal-soft); color: var(--teal); }
.case h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; color: var(--text); }
.case-cite { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.case blockquote { max-width: 92ch; margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--teal-line); font-size: 15px; line-height: 1.6; }
.case blockquote .label { display: block; margin-bottom: 6px; }
mark { padding: 0 3px; border-radius: 4px; background: rgba(29, 215, 207, .22); color: #E2FCFA; }
.case-actions { display: flex; gap: 8px; margin-top: 16px; }
.pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 500; color: var(--text); }
.cases-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px;
  border-top: 1px solid var(--line); font-size: 14px; transition: opacity .45s;
}
.cases-foot.pend { opacity: 0; }
.followup {
  flex: 1; min-width: 220px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text-3);
}

.corpus { margin-top: clamp(48px, 6vw, 84px); }
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px;
  border: 1px solid transparent; border-radius: 22px;
  background: linear-gradient(rgba(8, 13, 16, .8), rgba(8, 13, 16, .8)) padding-box, var(--edge) border-box;
}
.stats > div { padding: 28px 26px 26px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats dt {
  font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.05em; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #fff 25%, #9FBDBF 110%);
  -webkit-background-clip: text; background-clip: text; color: var(--text); -webkit-text-fill-color: transparent;
}
.stats .stat-mark { background: none; color: var(--teal); -webkit-text-fill-color: var(--teal); text-shadow: 0 0 40px rgba(29, 215, 207, .6); }
.stats dd { max-width: 24ch; margin-top: 10px; font-size: 15px; }
.corpus-note { margin-top: 22px; font-size: 14px; color: var(--text-3); }

/* ---------- Contract review ---------- */
.review { --step: 5; }
.review[data-step="0"] { --step: 1; }
.review[data-step="1"] { --step: 2; }
.review[data-step="2"] { --step: 3; }
.review[data-step="3"] { --step: 4; }
.review[data-step="4"] { --step: 5; }
.review[data-step="5"] { --step: 6; }
.win-bar-tabs { position: relative; flex-wrap: nowrap; }
.win-bar-tabs::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--step) / 6 * 100%);
  background: linear-gradient(90deg, rgba(29, 215, 207, .15), var(--teal)); box-shadow: 0 0 12px rgba(29, 215, 207, .8);
  transition: width .6s var(--ease);
}
.win-bar-tabs .win-title { flex: 0 1 auto; white-space: nowrap; overflow: hidden; }
.tabs { display: flex; gap: 2px; min-width: 0; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-3); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: color .2s, background .2s;
}
.tabs button i { font-style: normal; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tabs button.done { color: var(--text-2); }
.tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.tabs button[aria-selected="true"] { color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px rgba(29, 215, 207, .25) inset; }

.review-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.doc-stage {
  position: relative; height: var(--doc-h, auto); overflow: hidden; padding: 28px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(29, 215, 207, .08), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 22px 22px,
    rgba(0, 0, 0, .3);
}
.paper {
  --p-ink: #12191B; --p-ink-2: #4A5659; --p-line: #DDE2E0; --p-del: #B4372D; --p-ins: #06655F;
  min-height: 100%; padding: 34px 40px 34px; border-radius: 6px;
  background: #F8F8F5; color: var(--p-ink);
  font: 400 15.5px/1.6 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 34px 70px -24px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(29, 215, 207, .45);
}
.paper b { color: var(--p-ink); font-weight: 700; }
.ribbon { display: none; }
.show-word .ribbon {
  display: flex; align-items: center; gap: 16px; margin: -34px -40px 26px; padding: 10px 16px;
  border-bottom: 1px solid var(--p-line); border-radius: 6px 6px 0 0; background: #E9ECEA;
  font: 400 14px/1.4 var(--font); color: var(--p-ink-2);
}
.ribbon-w { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #1E5BB8; color: #fff; font-size: 12.5px; font-weight: 700; }
.ribbon-on { color: var(--p-ink); font-weight: 600; box-shadow: 0 2px 0 #1E5BB8; }
.ribbon-tc { margin-left: auto; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); font-weight: 500; white-space: nowrap; }
.paper-kicker { font: 500 12.5px/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink-2); }
.paper-title { margin-top: 14px; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p-ink); }
.paper-parties { margin: 6px 0 22px; text-align: center; color: var(--p-ink-2); }

.clause { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); padding: 8px 0 8px 16px; }
.clause::before {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 2px;
  background: transparent; transition: background .35s;
}
.clause > p { grid-column: 2; }
.cl-n { font-weight: 700; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.show-risk .clause[data-risk="high"]::before { background: #D4483E; }
.show-risk .clause[data-risk="medium"]::before { background: #C98A1B; }
.show-risk .clause[data-risk="low"]::before { background: #5E76B8; }

.pb-tag {
  display: none; margin-left: 4px; padding: 2px 9px; border-radius: 999px;
  font: 600 12.5px/1.5 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.show-playbook .pb-tag { display: inline-block; }
.pb-major { background: #FBE3E0; color: #A32B22; }
.pb-minor { background: #FBEFD6; color: #7F5306; }

.flaw { border-radius: 3px; transition: background .3s, box-shadow .3s; }
.show-drafting .flaw { background: #FCE9B8; box-shadow: 0 0 0 2px #FCE9B8; }
.show-redline .chg.flaw { background: none; box-shadow: none; }

.chg del { color: inherit; text-decoration: none; }
.chg ins { display: none; }
.show-redline .chg del { color: var(--p-del); text-decoration: line-through; }
.show-redline .chg ins {
  display: inline; margin-left: .3em; color: var(--p-ins);
  text-decoration: underline; text-underline-offset: 3px;
}
.show-redline .chg.accepted ins { background: rgba(6, 101, 95, .12); box-shadow: 0 0 0 2px rgba(6, 101, 95, .12); border-radius: 2px; }
/* Word step: only accepted edits travel, shown as Word shows them */
.show-word .chg:not(.accepted) del { color: inherit; text-decoration: none; }
.show-word .chg:not(.accepted) ins { display: none; }
.show-word .chg.accepted ins { color: var(--p-del); background: none; box-shadow: none; }

.margin-note {
  display: none; margin-top: 8px; padding: 6px 12px;
  border-left: 2px solid var(--p-ins); border-radius: 0 6px 6px 0; background: #E4F1F0;
  font: 400 14px/1.45 var(--font); color: #24403E;
}
.margin-note b { margin-right: 8px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--p-ins); }
.show-redline .margin-note { display: block; }
.show-word .margin-note:not(.accepted) { display: none; }
.show-word .margin-note { border-left-color: var(--p-del); background: #FBE9E7; color: #4A2A27; }
.show-word .margin-note b { color: var(--p-del); }

.panes { min-width: 0; padding: 26px 24px; border-left: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.pane:not([hidden]) { animation: pane-in .4s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
.pane-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
}
.pane-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.pane-lede { margin-top: 8px; font-size: 15px; }
.facts { margin-top: 20px; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text); font-weight: 500; text-align: right; }
.findings { margin-top: 20px; border-top: 1px solid var(--line); }
.findings li { display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-n { padding-top: 1px; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.f-top b { font-size: 15px; line-height: 1.35; }
.findings li p + p { margin-top: 4px; font-size: 14px; line-height: 1.5; }
.badge {
  flex: none; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.badge-high { background: var(--red-soft); color: var(--red); }
.badge-medium { background: var(--amber-soft); color: var(--amber); }
.badge-low { background: var(--blue-soft); color: var(--blue); }
.badge-on { background: var(--teal-soft); color: var(--teal); }
.delta del { color: var(--red); }
.delta ins { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.acc {
  flex: none; height: 30px; min-width: 88px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--teal-line); background: transparent;
  color: var(--teal); font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .15s;
}
.acc:hover { background: var(--teal-soft); }
.acc:active { transform: scale(.95); }
.acc[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); box-shadow: 0 6px 18px -8px rgba(29, 215, 207, .9); }
.pane-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 16px; font-size: 14px; color: var(--text-3); }
.pane-foot b { color: var(--teal); }

/* ---------- Negotiation ---------- */
.neg { display: grid; gap: 16px; }
.neg-drafts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.draft {
  padding: 22px 24px 24px; border: 1px solid transparent; border-radius: 20px;
  background: linear-gradient(180deg, #0B1316, #070C0E) padding-box, var(--edge) border-box;
}
.draft-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ver {
  padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.draft p:not(.draft-top), .diff-body p { position: relative; padding-left: 46px; }
.draft p:not(.draft-top) { font-size: 15px; line-height: 1.6; }
.draft p:not(.draft-top) b, .diff-body p b { position: absolute; left: 0; font-variant-numeric: tabular-nums; }
.draft p + p { margin-top: 10px; }
.diff-body { display: grid; gap: 14px; padding: 24px; }
.diff-body p { color: var(--text); line-height: 1.65; }
.diff-body ins { padding: 1px 4px; border-radius: 4px; background: var(--teal-soft); color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.diff-body del { padding: 1px 4px; border-radius: 4px; background: var(--red-soft); color: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.lg { display: inline-flex; align-items: center; gap: 10px; }
.lg::before { content: ""; width: 22px; height: 2px; border-radius: 2px; }
.lg-ins::before { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.lg-del::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.neg-ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding: 26px 28px; border: 1px solid var(--teal-line); border-radius: 20px;
  background: linear-gradient(90deg, rgba(29, 215, 207, .13), rgba(29, 215, 207, .02));
}
.neg-ask p { flex: 1 1 420px; color: var(--text); font-size: clamp(19px, 2vw, 22px); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }

/* ---------- Inside the firm ---------- */
.table-scroll { overflow-x: auto; }
.bill { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.bill th {
  padding: 12px 20px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.bill td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.bill tbody tr:last-child td { border-bottom: 0; }
.bill .r { text-align: right; }
.bill td:nth-child(4) { width: 56%; color: var(--text); }
.bill td:last-child { color: var(--text); white-space: nowrap; }
.bill del { display: block; color: var(--red); }
.bill ins { display: block; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(29, 215, 207, .5); }

.firm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.firm-grid > li {
  display: flex; flex-direction: column; padding: 26px 26px 28px; border: 1px solid transparent; border-radius: 20px;
  background: linear-gradient(180deg, #0B1316, #070C0E) padding-box, var(--edge) border-box;
}
.firm-grid h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: var(--text); }
.firm-grid h3 + p { margin-top: 10px; margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
.firm-grid h3 + p:last-child { margin-bottom: 0; }
.sheet { margin-top: auto; padding: 14px 16px; border-left: 2px solid var(--teal-line); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .04); font-size: 15px; }
.sheet-in { font-style: italic; }
.sheet .label { margin: 12px 0 4px; color: var(--teal); }
.sheet-out { color: var(--text); }
.mini { display: flex; align-items: flex-end; gap: 24px; margin-top: auto; }
.mini p { display: grid; gap: 4px; }
.mini b { font-size: 34px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.mini span { font-size: 14px; color: var(--text-3); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-left: auto; }
.bars i {
  width: 12px; height: var(--h); border-radius: 4px 4px 0 0; background: rgba(29, 215, 207, .36);
  transform-origin: bottom; transition: transform .9s var(--ease);
}
.bars i.now { background: var(--teal); box-shadow: 0 0 16px rgba(29, 215, 207, .8); }
.bars i:nth-child(2) { transition-delay: .06s; }
.bars i:nth-child(3) { transition-delay: .12s; }
.bars i:nth-child(4) { transition-delay: .18s; }
.bars i:nth-child(5) { transition-delay: .24s; }
.bars i:nth-child(6) { transition-delay: .3s; }
.motion .bars:not(.in) i { transform: scaleY(.1); }

/* ---------- Control and privacy ---------- */
.sec-privacy { background: radial-gradient(1000px 560px at 88% 36%, rgba(29, 215, 207, .12), transparent 64%), linear-gradient(180deg, rgba(8, 14, 16, .9), rgba(3, 6, 7, 0)); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.privacy-copy > .label { margin: 40px 0 12px; }
.privacy-copy > .label:first-child { margin-top: 0; }
.checks li { position: relative; padding: 15px 0 15px 38px; border-bottom: 1px solid var(--line); color: var(--text); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft); box-shadow: 0 0 0 1px rgba(29, 215, 207, .3) inset;
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: 22px; width: 5px; height: 9px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.privacy-text { max-width: 60ch; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.certs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.certs b { font-size: 15px; }
.certs span { font-size: 14px; color: var(--text-2); }
.privacy-copy .link-arrow { margin-top: 28px; }

.route {
  position: sticky; top: 110px; padding: 30px 28px 22px;
  border: 1px solid transparent; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0C1518, #070D0F) padding-box, var(--edge) border-box;
  box-shadow: 0 50px 100px -50px #000, 0 0 140px -50px rgba(29, 215, 207, .5);
}
.node { position: relative; min-height: 30px; padding: 0 0 30px 40px; }
.node::before {
  content: ""; position: absolute; left: 6px; top: 6px; z-index: 1; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--text-3); background: #0C1417;
}
.node::after { content: ""; position: absolute; left: 13px; top: 21px; bottom: -6px; width: 1px; background: var(--line-2); }
.node:last-child { padding-bottom: 22px; }
.node:last-child::after { display: none; }
.node b { display: block; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.node span { display: block; font-size: 14px; color: var(--text-3); }
.node-on b { color: var(--teal); text-shadow: 0 0 30px rgba(29, 215, 207, .6); }
.node-on::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px var(--teal-soft), 0 0 24px rgba(29, 215, 207, .9); }
.node-on::after { background: none; border-left: 1px dashed rgba(255, 138, 128, .5); }
.node-off b { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.node-off::before { border-color: var(--red); }
.route-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }

/* ---------- Demo ---------- */
.sec-demo { padding-top: clamp(32px, 4.8vw, 72px); }
.sec-demo::before { display: none; }
.demo-card {
  position: relative; overflow: hidden; padding: clamp(44px, 8vw, 104px) clamp(24px, 6vw, 88px);
  border: 1px solid transparent; border-radius: 32px;
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(29, 215, 207, .26), transparent 66%) padding-box,
    linear-gradient(180deg, #0C1518, #060B0D) padding-box,
    var(--edge) border-box;
  box-shadow: 0 60px 120px -60px #000, 0 0 160px -60px rgba(29, 215, 207, .5);
}
.rings {
  position: absolute; right: -180px; top: 50%; width: 720px; height: 720px; transform: translateY(-50%); pointer-events: none;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 58px, rgba(29, 215, 207, .16) 59px 60px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
.demo-card > :not(.rings) { position: relative; }
.demo-card h2 { max-width: 13ch; font-size: clamp(2.3rem, 5.8vw, 4.75rem); letter-spacing: -.052em; line-height: 1; }
.demo-card h2 .teal { text-shadow: 0 0 60px rgba(29, 215, 207, .55); }
.demo-card > p { max-width: 54ch; margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); }
.demo-signin { font-size: 15px; }
.demo-signin a { color: var(--teal); font-weight: 600; text-decoration: none; }
.demo-signin a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot .brand img { height: 18px; }
.foot-copy { font-size: 14px; color: var(--text-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; font-size: 14px; }
.foot-links a { color: var(--text-2); text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: var(--text); }

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1020px) {
  .chat-grid { grid-template-columns: 1fr; }
  .sources { border-left: 0; border-top: 1px solid var(--line); }
  .src-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .src-group .label-sub { margin-top: 16px; }
  .win-bar-tabs { flex-wrap: wrap; }
  .win-bar-tabs .win-title { display: block; flex: 1 1 0; text-overflow: ellipsis; }
  .win-bar-tabs .win-sub { margin-left: 6px; }
  .tabs { order: 3; flex: 1 0 100%; margin: 0 -8px; }
  .review-grid { grid-template-columns: 1fr; }
  .panes { min-height: 416px; border-left: 0; border-top: 1px solid var(--line); }
  .privacy-grid { grid-template-columns: 1fr; }
  .route { position: static; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firm-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { border-left: 0; border-top: 1px solid var(--line); }
  .stats > div:nth-child(-n+2) { border-top: 0; }
  .stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .rings { right: -320px; opacity: .7; }
}

/* =====================================================================
   Phone: its own layout, not a squeezed desktop
   ===================================================================== */
@media (max-width: 680px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 88px; }

  /* Phone hero: the headline starts at the top, on a clean background (no orbit, no N, no tags) */
  .hero { min-height: 0; }
  .hero-orbit, .hero::before { display: none; }
  .hero > .wrap { justify-content: flex-start; padding-block: 34px 18px; }
  .hero-head { order: 1; }
  .hero .actions { order: 2; }
  .lede { order: 3; }
  .trust { order: 4; }
  h1 { font-size: clamp(2.5rem, 11.4vw, 3.1rem); letter-spacing: -.05em; }
  .balloon { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 10px; width: 100%; margin-top: 22px; padding: 8px 8px 8px 16px; }
  .balloon-row { display: none; }
  .balloon-top { flex-wrap: wrap; gap: 0 8px; }
  .balloon .chip { padding: 0 12px; white-space: nowrap; }
  .lede { margin-top: 24px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .hero .actions .btn { height: 52px; padding: 0 8px; gap: 7px; font-size: clamp(13px, 3.75vw, 15px); }
  .trust { grid-template-columns: 1fr; margin-top: 30px; border-radius: 20px; }
  .trust > div { display: grid; grid-template-columns: 1fr; padding: 14px 20px 15px; border-left: 0; border-top: 1px solid var(--line); }
  .trust > div:first-child { border-top: 0; }
  .trust dt { font-size: 17px; }

  .sec { padding: 54px 0; }
  .sec-first { padding-top: 32px; }
  .sec-head { margin-bottom: 30px; }
  h2 { font-size: clamp(1.95rem, 8.6vw, 2.4rem); }
  .kicker { margin-bottom: 20px; }

  .window { border-radius: 22px; }
  .win-bar { padding: 12px 16px; }

  /* Chat */
  .chat-view { padding: 18px 14px; }
  .msg-user { max-width: 92%; padding: 12px 15px; }
  .msg-agent { grid-template-columns: 1fr; }
  .msg-agent > .mark { display: none; }
  .steps { padding: 6px 12px; }
  .step { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 0 10px; }
  .step b { grid-column: 2; grid-row: 1; }
  .step em { grid-column: 3; grid-row: 1; }
  .step-q { grid-column: 2 / 4; grid-row: 2; white-space: normal; }
  .chat .win-meta { display: contents; }
  .chat .ag-count { flex: 1 0 100%; overflow: hidden; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
  .sources { padding: 18px 14px; }
  .src-list { grid-template-columns: 1fr; gap: 0; }

  .principles { grid-template-columns: 1fr; }
  .principles li { padding: 20px 20px 22px; border-left: 0; border-top: 1px solid var(--line); }
  .principles li:first-child { border-top: 0; }
  .principles h3 { font-size: 20px; }

  /* Skills: one list, full width. Title and its command share a line. */
  .skills-grid {
    grid-template-columns: 1fr; gap: 0; margin-top: 24px;
    border: 1px solid transparent; border-radius: 22px; overflow: hidden;
    background: linear-gradient(180deg, #0B1316, #070C0E) padding-box, var(--edge) border-box;
  }
  .skills-grid li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
    padding: 18px 18px 19px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none;
  }
  .skills-grid li:first-child { border-top: 0; }
  .skills-grid .cmd { grid-column: 2; grid-row: 1; }
  .skills-grid h4 { grid-column: 1; grid-row: 1; margin-top: 0; font-size: 17px; }
  .skills-grid p { grid-column: 1 / -1; margin-top: 2px; }

  /* Case law: results stacked, full width */
  .search { padding: 12px 14px; gap: 12px; }
  .replay { display: none !important; }
  .also, .stages { padding: 12px 14px; }
  .cases { padding: 12px; gap: 10px; }
  .case { padding: 16px; }
  .cases-foot { padding: 14px; }
  .followup { min-width: 0; flex-basis: 100%; }

  .stats > div { padding: 20px 18px; }
  .stats dt { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }

  /* Contract review: the findings first, the document under them */
  .panes { order: -1; min-height: 420px; padding: 20px 16px; border-top: 0; border-bottom: 1px solid var(--line); }
  .doc-stage { height: auto; padding: 12px; }
  .paper { padding: 24px 18px 26px; }
  .show-word .ribbon { margin: -24px -18px 20px; gap: 12px; }
  .paper { font-size: 15px; }
  .ribbon span:nth-child(3), .ribbon span:nth-child(5) { display: none; }
  .clause { grid-template-columns: 40px minmax(0, 1fr); padding-left: 12px; }
  .margin-note { display: none !important; }

  .neg-drafts { grid-template-columns: 1fr; gap: 10px; }
  .draft { padding: 18px 18px 20px; }
  .diff-body { padding: 18px 16px; }
  .draft p:not(.draft-top), .diff-body p { padding-left: 38px; }
  .legend { padding: 12px 16px; }
  .neg-ask { padding: 22px 20px; }
  .neg-ask p { flex-basis: 100%; }

  .bill { min-width: 0; }
  .bill thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bill tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: 6px 12px; padding: 16px; border-bottom: 1px solid var(--line); }
  .bill tbody tr:last-child { border-bottom: 0; }
  .bill td { padding: 0; border: 0; font-size: 14px; color: var(--text-3); }
  .bill td:nth-child(3)::after { content: " units"; }
  .bill td:nth-child(3) { text-align: left; }
  .bill td:nth-child(4) { grid-column: 1 / -1; grid-row: 2; width: auto; font-size: 15px; }
  .bill td:last-child { grid-column: 4; grid-row: 1; font-size: 14px; }
  .firm-grid > li { padding: 22px 20px 24px; }

  .certs { display: grid; }
  .route { padding: 24px 20px 18px; }
  .demo-card { border-radius: 26px; padding: 44px 22px 40px; }
  .demo-card .actions .btn { flex: 1 1 100%; height: 54px; }
  .rings { right: -420px; top: 20%; }
  .foot-links { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) { .panes { min-height: 512px; } }

/* =====================================================================
   Motion
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .tc-del { animation: strike .7s .55s cubic-bezier(.6, 0, .2, 1) both; }
  .tc-ins { animation: insert .8s 1.1s var(--ease) both; }
  h1 { animation: rise .9s var(--ease) both; }
  .balloon { animation: rise .8s .9s var(--ease) both; }
  .lede { animation: rise .9s .28s var(--ease) both; }
  .hero .actions { animation: rise .9s .4s var(--ease) both; }

  .beam::after { animation: beam 7s linear infinite; }
  @keyframes beam { to { --beam: 360deg; } }

  /* Sections ease in as they are reached */
  .motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .motion [data-reveal].in { opacity: 1; transform: none; }

  /* The chat window lies back slightly and stands up as you scroll to it */
  .motion .tilt {
    transform: perspective(1800px) rotateX(calc((1 - var(--t, 1)) * 16deg)) scale(calc(.9 + var(--t, 1) * .1));
    transform-origin: 50% 0; opacity: calc(.35 + var(--t, 1) * .65); will-change: transform;
  }

  .node:nth-child(-n+2)::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, var(--teal) 50%, rgba(255, 255, 255, .14) 100%) 0 0 / 100% 300%;
    animation: flow 2.4s linear infinite;
  }
  .node:nth-child(2)::after { animation-delay: .5s; }
  @keyframes flow { from { background-position: 0 150%; } to { background-position: 0 -150%; } }
  .rings { animation: breathe 9s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: translateY(-50%) scale(1.06); } }
}
@media (max-width: 1020px), (hover: none) { .beam::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Precedent map (preview)
   ===================================================================== */
.preview-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(243, 188, 85, .45); background: var(--amber-soft);
  color: var(--amber); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.preview-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.kicker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.kicker-row .kicker { margin-bottom: 0; }

.t-f { --c: #1DD7CF; } .t-d { --c: #F3BC55; } .t-n { --c: #FF8A80; } .t-m { --c: #9FB0B3; }

/* summary strip */
.pm-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pm-verdict {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; margin-right: auto;
  border: 1px solid var(--teal-line); border-radius: 14px; background: var(--teal-soft);
}
.pm-verdict i {
  flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 20px rgba(29, 215, 207, .75);
}
.pm-verdict i::after {
  content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px;
  border: solid var(--teal-ink); border-width: 0 2.2px 2.2px 0; transform: rotate(42deg);
}
.pm-verdict b { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -.02em; }
.pm-verdict span { font-size: 14px; color: var(--text-2); }
.pm-filter {
  display: grid; align-content: center; gap: 4px;
  min-width: 132px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: 14px; text-align: left;
  transition: background .2s, border-color .2s, opacity .2s;
}
.pm-filter:hover { background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
.pm-filter b { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 26px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pm-filter b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.pm-filter[aria-pressed="false"] { opacity: .4; }

/* the map */
.pm-stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 30% 55%, rgba(29, 215, 207, .1), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 22px 22px,
    rgba(0, 0, 0, .32);
}
.pm-svg { display: block; width: 100%; }
.pm-origin-label { position: absolute; left: 22px; top: 18px; max-width: min(46%, 430px); pointer-events: none; }
.pm-origin-label b { display: block; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.pm-origin-label span { display: block; margin-top: 3px; font-size: 14px; color: var(--text-3); }
.pm-zone { position: absolute; right: 22px; pointer-events: none; text-align: right; }
.pm-zone-up { top: 18px; }
.pm-zone-down { bottom: 44px; }

.pm-grid-line { stroke: rgba(255, 255, 255, .055); stroke-width: 1; }
.pm-axis { stroke: rgba(255, 255, 255, .26); stroke-width: 1; }
.pm-tick { stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.pm-tick-label { fill: var(--text-3); font: 500 12.5px var(--font); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #060C0E; stroke-width: 5px; stroke-linejoin: round; }
.pm-arc { fill: none; stroke: var(--c); stroke-linecap: round; opacity: .5; transition: opacity .35s, stroke-width .35s; }
.pm-arc.t-f { stroke-width: 1.6; }
.pm-arc.t-m { stroke-width: 1.1; opacity: .34; }
.pm-arc.t-d { stroke-width: 1.6; }
.pm-arc.t-n { stroke-width: 2.2; opacity: .75; }
.pm-arc.sel { opacity: 1; stroke-width: 3; }
.pm-node { cursor: pointer; outline: none; }
.pm-node .dot { fill: #071012; stroke: var(--c); stroke-width: 2; transition: r .25s, fill .25s; }
.pm-node .hit { fill: transparent; }
.pm-node.sel .dot, .pm-node:focus-visible .dot { fill: var(--c); }
.pm-pulse { fill: #fff; }
.pm-origin-halo { fill: rgba(29, 215, 207, .14); }
.pm-origin { fill: #041313; stroke: var(--teal); stroke-width: 2; }
.pm-origin-dot { fill: var(--teal); }
.pm-flag rect { fill: #0C1518; stroke: var(--c); stroke-width: 1; }
.pm-flag text { fill: var(--text); font: 600 12.5px var(--font); font-variant-numeric: tabular-nums; }
.pm-scan { stroke: var(--teal); stroke-width: 1; opacity: 0; }
.pm-scan-year { fill: var(--teal); font: 600 14px var(--font); font-variant-numeric: tabular-nums; opacity: 0; }
.scanning .pm-scan { opacity: .55; }
.scanning .pm-scan-year { opacity: 1; }
.pm-off { opacity: 0 !important; pointer-events: none; }
.pm-dim { opacity: .07 !important; }

/* detail of the selected judgment */
.pm-detail {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 24px;
  min-height: 92px; padding: 16px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .22);
}
.pm-detail.swap > * { animation: appear .4s var(--ease) both; }
.pm-who { display: grid; gap: 6px; min-width: 190px; }
.pm-who p { display: flex; align-items: center; gap: 8px; }
.pm-badge { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pm-who b { font-size: 17px; letter-spacing: -.02em; }
.pm-how { padding-left: 16px; border-left: 2px solid var(--c); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.pm-how small { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pm-acts { display: flex; gap: 8px; }
.pm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.pm-foot a { color: var(--teal); font-weight: 600; text-decoration: none; }
.pm-legend { display: none; }

@media (max-width: 860px) {
  .pm-verdict { flex: 1 1 100%; margin-right: 0; }
  .pm-filter { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .pm-detail { grid-template-columns: 1fr; gap: 12px; }
  .pm-acts { display: none; }
}
@media (max-width: 680px) {
  .pm-strip { padding: 12px 14px; gap: 8px; }
  .pm-filter { padding: 9px 12px; }
  .pm-filter b { font-size: 22px; }
  .pm-origin-label { left: 14px; top: 12px; max-width: 62%; }
  .pm-origin-label b { font-size: 15px; }
  .pm-zone { display: none; }
  .pm-origin-label { max-width: none; right: 14px; }
  .pm-legend { display: grid; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
  .pm-legend b { font-weight: 600; }
  .pm-detail, .pm-foot { padding: 14px; }
}

/* =====================================================================
   Edit by chat (preview)
   ===================================================================== */
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.ed-chat { position: relative; min-width: 0; padding: 22px; border-right: 1px solid var(--line); scrollbar-width: none; }
.ed-chat::-webkit-scrollbar { display: none; }
.motion .ed-chat { height: var(--ed-h, 560px); overflow: hidden; }
.ed-flow { display: flex; flex-direction: column; gap: 14px; transition: opacity .28s; }
.ed-flow.fading { opacity: 0; }
.ed-filemsg { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.ed-doc-icon {
  position: relative; flex: none; width: 15px; height: 19px; border-radius: 3px;
  border: 1.5px solid currentColor; opacity: .9;
}
.ed-doc-icon::before { content: ""; position: absolute; left: 2.5px; right: 2.5px; top: 5px; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor; }
.ed-agent { max-width: 94%; font-size: 15px; line-height: 1.55; }
.ed-reply { display: grid; gap: 8px; }
.ed-work {
  width: fit-content; font-size: 15px; font-weight: 500;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--text-3) 0%, var(--text-3) 35%, #fff 50%, var(--text-3) 65%, var(--text-3) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.ed-sugg { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.ed-sugg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-sugg-top b { font-size: 15px; }
.ed-sugg .delta { margin-top: 6px; font-size: 15px; }
.ed-note { margin-top: 4px; font-size: 14px; color: var(--text-3); }

.ed-stage { height: var(--ed-h, auto); }
.ed-drop {
  position: absolute; inset: 28px; display: grid; place-items: center; align-content: center; gap: 14px;
  border: 1.5px dashed rgba(255, 255, 255, .24); border-radius: 18px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.ed-empty .ed-drop { opacity: 1; }
.ed-drop-hint { font-size: 15px; color: var(--text-3); }
.ed-upload {
  width: min(440px, 88%); padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px;
  background: linear-gradient(180deg, #121D21, #0C1518); box-shadow: 0 24px 50px -24px #000;
}
.ed-upload-top { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.ed-upload-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-upload-state { font-size: 14px; color: var(--teal); }
.ed-bar { height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ed-bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); box-shadow: 0 0 10px var(--teal); }
.ed-upload.uploading .ed-bar i { width: 100%; transition: width 1.15s cubic-bezier(.3, .6, .2, 1); }
.ed-paper { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.ed-empty .ed-paper { opacity: 0; transform: translateY(18px); }
.ed-h { margin: 14px 0 2px; font-weight: 700; color: var(--p-ink); }
.ed-paper .clause { border-radius: 6px; transition: background .4s, box-shadow .4s; }
.ed-paper .clause.ed-focus { background: rgba(6, 101, 95, .07); box-shadow: 0 0 0 2px rgba(6, 101, 95, .45); }
.ed-chg del { color: inherit; text-decoration: none; }
.ed-chg ins { display: none; }
.ed-chg.on del { color: var(--p-del); text-decoration: line-through; }
.ed-chg.on ins { display: inline; margin-left: .3em; color: var(--p-ins); text-decoration: underline; text-underline-offset: 3px; }
.ed-chg.accepted del { display: none; }
.ed-chg.accepted ins { display: inline; margin-left: 0; color: inherit; text-decoration: none; background: rgba(6, 101, 95, .12); box-shadow: 0 0 0 2px rgba(6, 101, 95, .12); border-radius: 2px; }
.ed-new { display: none; }
.ed-new.on { display: grid; color: var(--p-ins); animation: appear .5s var(--ease) both; }
.ed-new.on::before { background: var(--p-ins); }
.ed-new.on b, .ed-new.on .cl-n { color: var(--p-ins); }
.ed-new.on > p { text-decoration: underline; text-decoration-color: rgba(6, 101, 95, .45); text-underline-offset: 3px; }
.ed-new.accepted, .ed-new.accepted b, .ed-new.accepted .cl-n { color: var(--p-ink); }
.ed-new.accepted > p { text-decoration: none; }
.ed-new.accepted::before { background: rgba(6, 101, 95, .5); }
.ed-foot { align-items: center; }
.ed-dl { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; transition: color .3s, border-color .3s, box-shadow .3s; }
.ed-foot.ready .ed-dl { border-color: var(--teal-line); color: var(--teal); box-shadow: 0 0 24px -6px rgba(29, 215, 207, .8); }
@media (max-width: 1020px) {
  .ed-grid { grid-template-columns: 1fr; }
  .ed-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .motion .ed-chat { height: 430px; }
}
@media (max-width: 680px) {
  .ed-chat { padding: 16px 14px; }
  .motion .ed-chat { height: 400px; }
  .ed-drop { inset: 12px; }
}

/* =====================================================================
   Light look (the live one): the original page's background, #F2F5F5.
   Everything above is the dark look; these rules restyle it when <html>
   has class "light". Remove that class in index.html to go back to dark.
   ===================================================================== */
html.light {
  --bg: #F2F5F5;
  --ink-1: #FFFFFF;
  --ink-2: #FAFBFB;
  --ink-3: #F0F3F3;
  --ink-4: #E6ECEC;
  --line: rgba(18, 36, 40, .10);
  --line-2: rgba(18, 36, 40, .17);
  --line-3: rgba(18, 36, 40, .30);
  --text: #0F1B1E;
  --text-2: #3E4E52;
  --text-3: #4F5F63;
  --teal: #06655F;
  --teal-hi: #0E9A93;
  --teal-ink: #FFFFFF;
  --teal-soft: rgba(13, 148, 141, .10);
  --teal-line: rgba(13, 148, 141, .42);
  --red: #B3261E;
  --red-soft: rgba(179, 38, 30, .09);
  --amber: #764600;
  --amber-soft: rgba(201, 138, 27, .17);
  --blue: #3C55A0;
  --blue-soft: rgba(60, 85, 160, .11);
  --edge: linear-gradient(155deg, rgba(18, 36, 40, .17), rgba(18, 36, 40, .08) 40%, rgba(13, 148, 141, .36));
  --card: linear-gradient(180deg, #FFFFFF, #FAFBFB);
  --lift: 0 1px 2px rgba(18, 24, 25, .05), 0 30px 70px -36px rgba(18, 24, 25, .38);
  color-scheme: light;
  background: var(--bg);
}
html.light body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 700px at 86% -6%, rgba(29, 215, 207, .2), transparent 62%),
    radial-gradient(900px 700px at -12% 18%, rgba(29, 215, 207, .09), transparent 60%),
    var(--bg);
  background-repeat: repeat, no-repeat, no-repeat, repeat;
}

/* The header and footer use assets/neolaw-logo-ink.webp (dark "law.ai"). The dark look needs the white one back. */
html:not(.light) .brand img { content: url("assets/neolaw-logo.webp"); }

/* header */
html.light .nav::before { background: linear-gradient(180deg, var(--bg) 18%, rgba(242, 245, 245, .8) 58%, transparent); }
html.light .nav-in { background: rgba(255, 255, 255, .6); }
html.light .nav.scrolled .nav-in, html.light .nav.open .nav-in { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(18, 24, 25, .05), 0 22px 44px -28px rgba(18, 24, 25, .35); }
html.light .nav-links a:hover, html.light .nav-signin:hover, html.light .nav-links a[aria-current="true"] { background: rgba(18, 36, 40, .06); }
html.light .menu-btn { background: rgba(255, 255, 255, .7); }
html.light .nav-sheet { background: rgba(242, 245, 245, .97); }

/* buttons */
html.light .btn-primary { color: #021B1A; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 0 1px rgba(13, 148, 141, .45), 0 16px 34px -14px rgba(13, 148, 141, .7); }
html.light .btn-ghost { background: rgba(255, 255, 255, .75); }
html.light .btn-ghost:hover { background: #fff; }
html.light .chip { background: #fff; }
html.light .chip:hover { background: #F4F7F7; }
html.light .chip-solid { background: var(--teal); border-color: var(--teal); color: #fff; }
html.light .replay { background: #fff; }
html.light .replay:hover { background: #F4F7F7; }

/* hero */
html.light .hero::before { background-image: radial-gradient(rgba(18, 36, 40, .24) 1px, transparent 1.4px); }
html.light .hero-orbit { --orbit-rgb: 8,115,110; --orbit-hi-rgb: 2,44,42; --orbit-chip-rgb: 255,255,255; --orbit-core: #06191A; }
html.light .tc-del { color: rgba(179, 38, 30, .78); }
html.light .tc-ins { text-shadow: none; }
html.light .balloon, html.light .trust, html.light .principles, html.light .stats { background: linear-gradient(#fff, #fff) padding-box, var(--edge) border-box; }
html.light .kicker { background: #fff; }

/* windows and cards */
html.light .window, html.light .route {
  background: var(--card) padding-box, var(--edge) border-box;
  box-shadow: var(--lift), 0 0 120px -60px rgba(29, 215, 207, .6);
}
html.light .win-bar { background: rgba(18, 36, 40, .022); }
html.light .beam::after { background: conic-gradient(from var(--beam), transparent 0 72%, rgba(13, 148, 141, 0) 76%, rgba(13, 148, 141, .95) 88%, #1DD7CF 91%, transparent 94%); }
html.light .skills-grid li, html.light .draft, html.light .firm-grid > li { background: var(--card) padding-box, var(--edge) border-box; }
html.light .skills-grid li:hover { box-shadow: 0 30px 50px -34px rgba(13, 148, 141, .55); }

/* legal agent chat */
html.light .chat-view::before { filter: brightness(0); }
html.light .chat-view.empty::before { opacity: .07; }
html.light .msg-user {
  border-color: rgba(13, 148, 141, .42);
  background: linear-gradient(180deg, rgba(29, 215, 207, .3), rgba(29, 215, 207, .16));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 30px -18px rgba(13, 148, 141, .6);
}
html.light .research { background: rgba(18, 36, 40, .025); }
html.light .tick, html.light .node::before { background: #fff; }
html.light .step.done .tick { background: var(--teal); box-shadow: none; }
html.light .node-on::before { background: var(--teal); }
html.light .step.cur b, html.light .ed-work {
  background-image: linear-gradient(90deg, var(--text-3) 0%, var(--text-3) 35%, #000 50%, var(--text-3) 65%, var(--text-3) 100%);
}
html.light .cmd-plain { background: rgba(18, 36, 40, .06); }
html.light .sources, html.light .panes, html.light .pm-detail { background: rgba(18, 36, 40, .022); }
html.light .src, html.light .case, html.light .pill, html.light .certs li, html.light .pm-filter, html.light .ed-sugg { background: #fff; }
html.light .src.ghost, html.light .case.pend { background: transparent; }
html.light .src-cited.lit { box-shadow: 0 0 0 3px rgba(13, 148, 141, .1), 0 0 40px -12px rgba(13, 148, 141, .6); }

/* case law */
html.light .term { border-color: rgba(18, 36, 40, .3); }
html.light .stage::before { background: #D3DCDC; }
html.light .stage.done::before, html.light .stage.cur::before { background: var(--teal); }
html.light .cases.loading .case.pend::after { background: linear-gradient(100deg, transparent 30%, rgba(18, 36, 40, .06) 50%, transparent 70%) 0 0 / 200% 100%; }
html.light .tag, html.light .badge, html.light .ver { background: rgba(18, 36, 40, .07); }
html.light .tag-on, html.light .badge-on { background: var(--teal-soft); }
html.light .badge-high { background: var(--red-soft); }
html.light .badge-medium { background: var(--amber-soft); }
html.light .badge-low { background: var(--blue-soft); }
html.light mark { background: rgba(29, 215, 207, .34); color: var(--text); }
html.light .followup { background: rgba(18, 36, 40, .04); }
html.light .stats dt { background: linear-gradient(180deg, #0F1B1E 25%, #3B5A5E 110%); -webkit-background-clip: text; background-clip: text; }
html.light .stats .stat-mark { background: none; text-shadow: none; }

/* precedent map */
html.light .t-f { --c: #06655F; }
html.light .t-d { --c: #9A6200; }
html.light .t-n { --c: #B3261E; }
html.light .t-m { --c: #66767A; }
html.light .pm-stage {
  background:
    radial-gradient(70% 90% at 30% 55%, rgba(29, 215, 207, .16), transparent 70%),
    radial-gradient(rgba(18, 36, 40, .1) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #E9EEF0;
}
html.light .pm-grid-line { stroke: rgba(18, 36, 40, .07); }
html.light .pm-axis { stroke: rgba(18, 36, 40, .36); }
html.light .pm-tick { stroke: rgba(18, 36, 40, .42); }
html.light .pm-tick-label { stroke: #E9EEF0; }
html.light .pm-node .dot, html.light .pm-origin, html.light .pm-flag rect { fill: #fff; }
html.light .pm-node.sel .dot, html.light .pm-node:focus-visible .dot { fill: var(--c); }
html.light .pm-origin-halo { fill: rgba(13, 148, 141, .16); }
html.light .pm-pulse { fill: #0F1B1E; }
html.light .pm-arc { opacity: .6; }
html.light .pm-arc.t-m { opacity: .5; }
html.light .pm-arc.sel { opacity: 1; }
html.light .pm-badge { color: color-mix(in srgb, var(--c) 82%, #000); }

/* contract review, edit by chat */
html.light .tabs button:hover { background: rgba(18, 36, 40, .06); }
html.light .doc-stage {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(29, 215, 207, .14), transparent 60%),
    radial-gradient(rgba(18, 36, 40, .1) 1px, transparent 1.4px) 0 0 / 22px 22px,
    #E9EEF0;
}
html.light .paper { background: #fff; box-shadow: 0 0 0 1px rgba(18, 24, 25, .06), 0 26px 54px -30px rgba(18, 24, 25, .45); }
html.light .ed-drop { border-color: rgba(18, 36, 40, .32); }
html.light .ed-upload { background: #fff; box-shadow: var(--lift); }
html.light .ed-bar { background: rgba(18, 36, 40, .1); }

/* firm, privacy, demo */
html.light .sheet { background: rgba(18, 36, 40, .04); }
html.light .bars i { background: rgba(13, 148, 141, .34); }
html.light .bars i.now { background: var(--teal); box-shadow: none; }
html.light .sec-privacy { background: radial-gradient(1000px 560px at 88% 36%, rgba(29, 215, 207, .2), transparent 64%), linear-gradient(180deg, #E9EEF0, rgba(242, 245, 245, 0)); }
html.light .node-on b, html.light .demo-card h2 .teal { text-shadow: none; }
html.light .demo-card {
  background:
    radial-gradient(760px 420px at 88% 8%, rgba(29, 215, 207, .34), transparent 66%) padding-box,
    var(--card) padding-box,
    var(--edge) border-box;
  box-shadow: var(--lift), 0 0 140px -60px rgba(29, 215, 207, .7);
}
html.light .rings { background: repeating-radial-gradient(circle, transparent 0 58px, rgba(13, 148, 141, .22) 59px 60px); }
html.light .neg-ask { background: linear-gradient(90deg, rgba(29, 215, 207, .2), rgba(29, 215, 207, .05)); }

/* Small phones: the header bar is tightened so the logo, the button and the menu all fit inside it */
@media (max-width: 400px) {
  .nav-in { gap: 10px; padding: 0 7px 0 14px; }
  .brand img { height: 18px; }
  .nav .btn-sm { height: 38px; padding: 0 11px; font-size: 13px; }
  .menu-btn { width: 38px; height: 38px; }
  .menu-btn span { left: 11px; right: 11px; }
  .menu-btn span:first-child { top: 14px; }
  .menu-btn span:last-child { top: 22px; }
  .nav.open .menu-btn span:first-child, .nav.open .menu-btn span:last-child { top: 18px; }
}
@media (max-width: 345px) { .nav .btn-sm { display: none; } }

/* =====================================================================
   Speed on phones and tablets: the effects that cost the most to draw
   (frosted glass, wide glows, grain, endless decorative motion) are off.
   ===================================================================== */
@media (max-width: 1020px), (hover: none) {
  .nav-in, .nav-sheet { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-in, .nav.scrolled .nav-in, .nav.open .nav-in { background: rgba(6, 11, 13, .96); }
  html.light .nav-in, html.light .nav.scrolled .nav-in, html.light .nav.open .nav-in { background: rgba(255, 255, 255, .97); }
  html.light .nav-sheet { background: #F2F5F5; }
  body { background: var(--bg); }
  html.light body { background: radial-gradient(900px 600px at 86% -6%, rgba(29, 215, 207, .2), transparent 62%) no-repeat, var(--bg); }
  .window, .route, .demo-card, html.light .window, html.light .route, html.light .demo-card { box-shadow: 0 14px 34px -22px rgba(18, 24, 25, .5); }
  .paper, html.light .paper { box-shadow: 0 0 0 1px rgba(18, 24, 25, .08), 0 10px 24px -16px rgba(18, 24, 25, .45); }
  .msg-user, html.light .msg-user { box-shadow: none; }
  .btn-primary, html.light .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 18px -10px rgba(13, 148, 141, .7); }
  .rings { animation: none; }
  .node:nth-child(-n+2)::after { animation: none; background: var(--line-2); }
  .mark-lg, .src-cited.lit, html.light .src-cited.lit, .cite.ok, .step.done .tick { box-shadow: none; }
}
