/* VALID — Crown Legacy AI LLC, Tampa
 *
 * Design direction: paper, ink and a highlighter.
 * VALID's job is to show the law, so the page reads like a well-set legal
 * document that someone has gone over with a lime highlighter: warm paper,
 * near-black ink, a serif display face for statements, and the green used
 * only where something is being pointed at. One deep forest band gives the
 * page rhythm; one lime band carries the call to action.
 *
 * No web fonts, no CDN, no tracking. No inline style attributes anywhere:
 * the live site's Content-Security-Policy forbids them.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper:    #faf8f1;
  --paper-2:  #f1eee3;
  --card:     #ffffff;
  --ink:      #0e1411;
  --ink-2:    #1f2b25;
  --muted:    #45524b;
  --faint:    #5b675f;
  --line:     #e5e0d1;
  --line-2:   #d4cebb;
  --hl:       #d8ff3e;
  --hl-2:     #b9e81f;
  --green:    #2e6b12;
  --forest:   #0f2a20;
  --forest-2: #173a2c;
  --on-forest:#e8f1ec;
  --on-forest-dim: #b3c8bc;
  --clay:     #b53d0e;
  --warn:     #7a4d00;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --shadow-sm: 0 1px 0 rgba(14, 20, 17, 0.04), 0 8px 24px -16px rgba(14, 20, 17, 0.22);
  --shadow-lg: 0 1px 0 rgba(14, 20, 17, 0.04), 0 40px 90px -40px rgba(14, 20, 17, 0.45);
  --ring: 0 0 0 3px rgba(216, 255, 62, 0.75);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 0.18s; --dur-2: 0.35s; --dur-3: 0.6s;

  --maxw: 1160px;
  --readw: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: var(--green); text-underline-offset: 3px; }
.view[hidden], [hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.view h1[tabindex="-1"]:focus { outline: none; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, .display, .w-reading, .demo-reading, .answer-reading, .faq summary { text-wrap: balance; }
p, li, .lede, .mode-sub, .stat-label { text-wrap: pretty; }
html { -moz-osx-font-smoothing: grayscale; }
h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(34px, 4.4vw, 48px); margin: 0 0 14px; }
h2 { font-size: 13px; margin: 0 0 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
h3 { font-weight: 700; }
.lede { color: var(--muted); font-size: 18.5px; line-height: 1.55; margin: 0 0 28px; max-width: 56ch; }
.kicker {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
}
.display {
  font-family: var(--display); font-weight: 600; text-transform: none; letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.06; color: var(--ink); margin: 0 0 30px; max-width: 22ch;
}
.display em { font-style: italic; color: var(--green); }

/* The highlighter. Swept on once when the page loads. */
mark.hl { white-space: nowrap; }
mark.hl, .hl-anim {
  color: inherit; padding: 0 0.06em;
  background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%) no-repeat;
  background-size: 100% 100%;
}
.fx mark.hl { background-size: 0% 100%; animation: sweep 0.9s var(--ease) 0.35s forwards; }
@keyframes sweep { to { background-size: 100% 100%; } }

/* ------------------------------------------------------------------ nav */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 241, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-2) ease;
}
.masthead .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.logo {
  font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.logo .dot { background: var(--hl); padding: 0 0.08em; border-radius: 3px; }
.tagline { margin: 0; color: var(--faint); font-size: 14px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topnav a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.topnav a:hover { color: var(--ink); }
.topnav a.btn { color: var(--paper); }

/* ------------------------------------------------------------------ buttons */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--hl); color: var(--ink); text-decoration: none; white-space: nowrap;
  font: inherit; font-weight: 650; font-size: 15.5px; padding: 13px 22px; line-height: 1.2;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background var(--dur-1) ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(14, 20, 17, 0.55); }
.btn:active, .chipbtn:active, .demo-tab:active, .marquee-chip:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }

.chipbtn {
  appearance: none; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; min-height: 40px;
  transition-property: border-color, color, transform; transition-duration: var(--dur-1); transition-timing-function: ease-out;
}
.chipbtn:hover { border-color: var(--ink); color: var(--ink); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.examples-label { font-size: 13.5px; color: var(--faint); margin-right: 2px; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center;
  padding: 64px 0 56px;
}
.hero h1 { font-size: clamp(44px, 6.2vw, 86px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf1a; box-shadow: 0 0 0 0 rgba(63, 191, 26, 0.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(63, 191, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 26, 0); } }

.hero-ask {
  display: flex; align-items: center; gap: 8px; max-width: 580px; margin: 0 0 16px;
  padding: 7px 7px 7px 20px; border-radius: 19px; background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-2) var(--ease);
}
.hero-ask:focus-within { border-color: var(--ink); box-shadow: var(--ring), var(--shadow-sm); }
.hero-ask input[type="text"] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 17.5px; padding: 12px 0; outline: none;
}
.hero-ask input::placeholder { color: #86908a; }
.hero-chips { margin-bottom: 0; }

/* The product window. */
.window {
  position: relative; margin: 0; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(0.6deg);
}
.window::after {
  content: 'Quoted, not guessed'; position: absolute; right: 18px; bottom: 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--hl); color: var(--ink); padding: 6px 10px; border-radius: 6px; transform: rotate(-3deg);
}
.window-bar {
  display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #ec6a5e; }
.window-bar span:nth-child(2) { background: #f4bf4f; }
.window-bar span:nth-child(3) { background: #61c554; }
.window-bar em { margin: 0 auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--faint); transform: translateX(-20px); }
.window-body { padding: 22px 22px 64px; min-height: 468px; }
.w-ask {
  margin-left: auto; width: fit-content; max-width: 92%; min-height: 44px;
  background: var(--ink); color: var(--paper); border-radius: 14px 14px 4px 14px;
  padding: 11px 14px; font-size: 15.5px; display: flex; align-items: center;
}
.w-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--hl); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.w-status { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); opacity: 0; transition: opacity var(--dur-2) ease; }
.w-status.show { opacity: 1; }
.w-answer { margin-top: 6px; }
.w-answer > * { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease), filter var(--dur-3) var(--ease); }
.w-answer > .in { opacity: 1; transform: none; filter: none; }
.w-part { position: relative; }
.w-note {
  position: absolute; top: -9px; right: -6px; z-index: 1; pointer-events: none;
  font-size: 11px; font-weight: 750; letter-spacing: 0.02em; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--hl);
  box-shadow: 0 6px 16px -8px rgba(14, 20, 17, 0.6);
  opacity: 0; transform: translateY(4px) scale(0.96);
  transition: opacity 0.3s ease-out 0.35s, transform 0.3s var(--ease) 0.35s;
}
.in > .w-note { opacity: 1; transform: none; }
.in .w-passage .hl-anim { background-size: 100% 100%; }
.w-reading { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
.w-sub { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 7px; }
.w-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.w-tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.w-passage { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--hl-2); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.w-cite { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.w-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.w-text .hl-anim { background-size: 0% 100%; transition: background-size 1.1s var(--ease) 0.2s; }
.w-passage.in .hl-anim { background-size: 100% 100%; }
.w-src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.w-fp { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-left: 4px; }

/* ------------------------------------------------------------------ marquee + sources */
.marquee {
  margin: 0 0 20px; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 10px; padding-right: 10px; }
.marquee-chip {
  appearance: none; font: inherit; cursor: pointer; white-space: nowrap; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  transition: background var(--dur-1) ease, border-color var(--dur-1) ease;
}
.marquee-chip:hover { background: var(--hl); border-color: var(--hl-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

.sources-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 26px;
  margin: 28px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: 18px; color: var(--ink-2); text-align: center;
}
.sources-strip-label { width: 100%; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* ------------------------------------------------------------------ sections */
.section { padding: 104px 0 0; }

/* Live demo. */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.demo-tab {
  appearance: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; color: var(--muted); background: var(--card); border: 1px solid var(--line-2);
  transition-property: color, background-color, border-color, transform; transition-duration: var(--dur-1); transition-timing-function: ease-out;
}
.demo-tab:hover { color: var(--ink); border-color: var(--ink); }
.demo-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; align-items: stretch; }
.demo-card { border-radius: var(--r-lg); padding: 28px; }
.demo-bad { background: var(--paper-2); border: 1px dashed var(--line-2); }
.demo-good { background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.demo-label { margin: 0 0 16px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.demo-label-good { color: var(--green); }
.demo-note { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--faint); }
.demo-guess { font-family: var(--display); font-size: 22px; line-height: 1.35; font-style: italic; color: var(--muted); margin: 0 0 22px; }
.demo-flags { margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--clay); font-weight: 600; }
.demo-flags li { margin-bottom: 8px; }
.demo-flags li::before { content: '\2715'; display: inline-block; width: 22px; font-weight: 800; }
.demo-reading { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 16px; animation: rise var(--dur-3) var(--ease) both; }
.demo-sub { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
#demo-valid ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; animation: rise var(--dur-3) var(--ease) both; }
#demo-valid li { margin-bottom: 4px; }
.demo-open { margin-top: 20px; }

/* Forest band. */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.band { background: var(--forest); color: var(--on-forest); margin-top: 104px; padding: 96px 24px; }
.band-inner { max-width: calc(var(--maxw) - 48px); margin: 0 auto; padding: 0 0; }
.kicker-on-dark { color: var(--hl); }
.display-on-dark { color: #fff; }
.display-on-dark em { color: var(--hl); }
.stats { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 20px; }
.stat-num { display: block; font-family: var(--display); font-size: clamp(56px, 7vw, 92px); line-height: 1; font-weight: 600; color: var(--hl); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 10px; color: var(--on-forest-dim); font-size: 15.5px; max-width: 26ch; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; color: var(--on-forest-dim); font-size: 15.5px; }
.privacy-points strong { display: block; color: #fff; font-size: 17px; margin-bottom: 4px; }

/* How it works. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.step h3 { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.15; margin: 12px 0 10px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); }

/* Doors. */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode-card {
  appearance: none; text-align: left; font: inherit; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-1) ease;
}
.mode-card:hover, .mode-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.mode-title { font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.mode-sub { color: var(--muted); font-size: 15.5px; line-height: 1.5; flex: 1 1 auto; }
.mode-go { margin-top: 22px; font-weight: 700; font-size: 15px; color: var(--green); }
.mode-card-primary { background: var(--hl); border-color: var(--hl-2); }
.mode-card-primary .mode-sub { color: var(--ink-2); }
.mode-card-primary .mode-go { color: var(--ink); }

.honest { margin-top: 20px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }
.honest h2 { margin-bottom: 12px; }
.honest ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; columns: 2; column-gap: 40px; }
.honest li { margin-bottom: 8px; break-inside: avoid; }

/* FAQ. */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line-2); }
.faq:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 22px 56px 22px 0;
  font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
  font-family: var(--font); font-size: 20px; font-weight: 500; transition: transform var(--dur-2) var(--ease), background var(--dur-1) ease;
}
.faq[open] summary::after { transform: rotate(45deg); background: var(--hl); border-color: var(--hl-2); }
.faq p { margin: -6px 0 22px; color: var(--muted); max-width: 68ch; }

/* Lime call-to-action band. */
.cta { background: var(--hl); margin-top: 104px; padding: 88px 24px; }
.cta-inner { max-width: calc(var(--maxw) - 48px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.cta .kicker { color: var(--ink); }
.cta .display em { color: var(--ink); }
.cta .signup-lede { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.cta .signup-form { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.cta .hint a { color: var(--ink); }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 6px; color: var(--ink); }
.field .hint, .hint { display: block; font-size: 14px; color: var(--faint); margin-bottom: 8px; line-height: 1.5; }
.optional { color: var(--faint); font-weight: 400; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 16.5px; padding: 12px 14px;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
::placeholder { color: #86908a; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.field-check label { font-weight: 400; color: var(--muted); margin: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.signup-form .hint { margin: 16px 0 0; }
.signup-lede { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }

.filepick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filepick input[type="file"] { display: none; }
.filebtn { display: inline-block; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 16px; font-size: 14.5px; color: var(--muted); cursor: pointer; background: var(--card); }
.filebtn:hover { border-color: var(--ink); color: var(--ink); }
.filename { font-family: var(--mono); font-size: 13px; color: var(--green); word-break: break-all; }

.notice { border: 1px solid #e6c77c; background: #fff6de; border-radius: 12px; padding: 14px 16px; color: #5c3b00; font-size: 15px; margin-bottom: 22px; line-height: 1.55; }
.notice[hidden] { display: none; }

/* Inner views stay at reading width. */
#view-form, #view-ask, #view-map { max-width: var(--readw); margin: 0 auto; padding: 48px 0 0; }
.linkback { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--faint); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; margin-bottom: 24px; }
.linkback:hover { color: var(--ink); }

/* ------------------------------------------------------------------ answers + maps */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#ask-target { margin-top: 36px; scroll-margin-top: 90px; }
#ask-target:empty { margin-top: 0; }
#ask-target > *, #map-target > * { animation: rise 0.45s var(--ease) both; }
#ask-target > *:nth-child(2), #map-target > *:nth-child(2) { animation-delay: 0.05s; }
#ask-target > *:nth-child(n+3), #map-target > *:nth-child(n+3) { animation-delay: 0.1s; }

.answer-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
.answer-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.answer-reading { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.disclaimer-band { border: 1px solid var(--line); border-left: 3px solid var(--hl-2); background: var(--paper-2); border-radius: 10px; padding: 13px 16px; margin: 22px 0 28px; font-size: 14.5px; color: var(--muted); }
.ablock { margin-top: 22px; }
.ablock h3 { margin: 0 0 8px; font-size: 17px; }
.ablock p { margin: 0 0 7px; color: var(--muted); }
.panel { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 24px; margin-top: 26px; }
.panel h2 { margin-bottom: 12px; }
.panel ol, .panel ul { margin: 0; padding-left: 20px; color: var(--muted); }
.panel li { margin-bottom: 6px; }
.panel-accent { border-left: 4px solid var(--hl-2); }
.next-step { font-size: 17.5px; color: var(--ink); margin: 0; }
.empty { color: var(--muted); margin: 0; }
.panel .cta-row { margin-top: 16px; }

.passage { border: 1px solid var(--line); border-left: 3px solid var(--hl-2); border-radius: 12px; background: var(--paper); padding: 16px 18px; margin-bottom: 12px; }
.passage-cite { font-family: var(--mono); font-size: 12.5px; color: var(--green); margin-bottom: 4px; font-weight: 700; }
.passage-where { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.passage-text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.62; white-space: pre-wrap; }
.passage-prov { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--faint); word-break: break-all; }

.sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.source { font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; background: var(--paper); }

.map-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 8px; }
.map-meta { color: var(--faint); font-size: 13.5px; font-family: var(--mono); }
.bucket { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 22px; margin-bottom: 14px; animation: rise 0.45s var(--ease) both; }
.bucket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.bucket h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.bucket-id { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 14px; }
.chip { flex: 0 0 auto; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.chip-likely     { color: #2a6300; border-color: #a5d876; background: #ecfcd8; }
.chip-need_facts { color: var(--warn); border-color: #e6c77c; background: #fff6de; }
.chip-unlikely   { color: #4d5b53; border-color: var(--line-2); background: var(--paper-2); }
.bucket-block { margin-top: 14px; }
.bucket-block h4 { margin: 0 0 7px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.bucket-block ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.bucket-block li { margin-bottom: 5px; }
.lawdrop { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.lawdrop > summary { cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.lawdrop > summary::-webkit-details-marker { display: none; }
.lawdrop > summary::before { content: '\25B8  '; }
.lawdrop[open] > summary::before { content: '\25BE  '; }
.lawdrop .passage { margin-top: 12px; }

/* Answer layout: short version first, then the two lists, then detail. */
.answer-lead { margin: 22px 0 18px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); border-left: 5px solid var(--hl-2); box-shadow: var(--shadow-sm); }
.answer-lead .answer-lead-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.answer-lead-h { font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.25; margin: 0 0 10px; }
.answer-lead p { margin: 0 0 6px; font-size: 17.5px; color: var(--ink-2); }
.answer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.answer-card { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--card); }
.answer-card h2 { margin-bottom: 12px; }
.answer-card ul { list-style: none; margin: 0; padding: 0; }
.answer-card li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.answer-card li::before { position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.answer-card-yes h2 { color: var(--green); }
.answer-card-yes li::before { content: '\2713'; background: #ecfcd8; color: #2a6300; }
.answer-card-no h2 { color: var(--clay); }
.answer-card-no li::before { content: '\2715'; background: #fde9df; color: var(--clay); }
.answer-more { margin-top: 8px; }
.answer-more > h2 { margin: 26px 0 6px; }
.answer-fold { border-bottom: 1px solid var(--line-2); }
.answer-fold > summary { cursor: pointer; list-style: none; position: relative; padding: 16px 44px 16px 0; font-weight: 700; font-size: 17px; min-height: 44px; }
.answer-fold > summary::-webkit-details-marker { display: none; }
.answer-fold > summary::after { content: '+'; position: absolute; right: 4px; top: 50%; margin-top: -14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 500; transition: transform var(--dur-2) var(--ease); }
.answer-fold[open] > summary::after { transform: rotate(45deg); background: var(--hl); border-color: var(--hl-2); }
.answer-fold > p { margin: 0 0 8px; color: var(--muted); }
.answer-fold > p:last-child, .answer-fold > .passage:last-child { margin-bottom: 18px; }
.answer-law { margin-top: 10px; }
.answer-law > summary { color: var(--green); }
#ask-target .disclaimer-band { margin: 18px 0 0; }
@media (max-width: 640px) { .answer-pair { grid-template-columns: 1fr; } .answer-lead { padding: 20px; } }

/* Ask VALID as a conversation. */
.chat-log { display: flex; flex-direction: column; gap: 22px; margin: 8px 0 24px; }
.chat-log:empty { margin: 0; }
.msg { animation: rise 0.35s var(--ease) both; scroll-margin-top: 90px; }
.msg-user { align-self: flex-end; max-width: 82%; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 18px 18px 4px 18px; }
.msg-user p { margin: 0; font-size: 16.5px; line-height: 1.5; overflow-wrap: anywhere; }
.msg-bot { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--hl); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 17px; }
.msg-body { background: var(--card); border: 1px solid var(--line-2); border-radius: 4px 18px 18px 18px; padding: 18px 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.msg-body > *:first-child { margin-top: 0; }
.msg-body > *:last-child { margin-bottom: 0; }
.msg-say { margin: 0 0 12px; font-size: 16.5px; color: var(--ink-2); }
.msg-open { font-weight: 650; color: var(--ink); }
.msg-body .answer-lead { margin: 4px 0 16px; box-shadow: none; padding: 16px 18px; border-radius: var(--r); background: var(--paper); }
.msg-body .answer-card { margin: 0 0 14px; background: var(--paper); }
.msg-body .answer-card li:last-child { margin-bottom: 0; }
.msg-next { margin: 16px 0 10px; padding: 12px 14px; border-radius: 10px; background: #f3fbd9; border: 1px solid #dcef9c; color: var(--ink-2); font-size: 15.5px; }
.msg-disclaimer { margin: 10px 0 0; font-size: 13px; color: var(--faint); }
.msg-list { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.msg-list li { margin: 0 0 6px; }
.msg-warn { padding: 12px 14px 12px 32px; border-radius: 10px; background: #fff4ec; border: 1px solid #f3d3bd; }
.msg-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.followups { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); animation: dot 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); background: var(--line-2); } 40% { transform: translateY(-4px); background: var(--green); } }

.composer { position: sticky; bottom: 0; z-index: 5; padding: 14px 0 16px; background: linear-gradient(rgba(250, 248, 241, 0), var(--paper) 22px); }
.composer .examples { margin-bottom: 12px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 19px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); transition-property: border-color, box-shadow; transition-duration: var(--dur-1); }
.composer-row:focus-within { border-color: var(--ink); box-shadow: var(--ring), var(--shadow-sm); }
.composer-row textarea { flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 180px; border: 0; background: transparent; box-shadow: none; padding: 11px 0; resize: none; font-size: 16.5px; line-height: 1.45; }
.composer-row textarea:focus { box-shadow: none; }
.composer-send { flex: 0 0 auto; }
.composer-hint { margin: 8px 2px 0; font-size: 13px; color: var(--faint); }
@media (max-width: 640px) {
  .composer:has(#ask-examples[hidden]) .composer-hint { display: none; }
  .composer { padding-bottom: 10px; }
  .msg-bot { grid-template-columns: 1fr; gap: 8px; }
  .msg-avatar { width: 28px; height: 28px; font-size: 14px; }
  .msg-body { padding: 16px; }
  .msg-user { max-width: 92%; }
}
@media print { .composer, .typing, .followups { display: none !important; } .msg-user { background: #fff; color: #000; border: 1px solid #999; } .msg-body { box-shadow: none; } }

/* Ask VALID, kept as simple as any chat app: one box, a short answer,
 * the detail one tap away. While you chat, nothing else is on the page. */
.view-chat { max-width: 760px; margin: 0 auto; min-height: calc(100vh - 90px); min-height: calc(100dvh - 90px); display: flex; flex-direction: column; }
.chat-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.chat-top .linkback { margin: 0; }
.chat-hello { text-align: center; margin: auto 0 22px; padding-top: 6vh; }
.chat-hello h1 { margin-bottom: 8px; }
.chat-sub { margin: 0; color: var(--faint); font-size: 17px; }
.view-chat:not(.is-empty) .chat-hello { display: none; }
.view-chat:not(.is-empty) .chat-log { margin-top: 16px; flex: 1 0 auto; }
.view-chat.is-empty .composer { position: static; margin-bottom: auto; padding-bottom: 12vh; background: none; }
.view-chat.is-empty .examples { justify-content: center; }
.view-chat.is-empty .composer-hint { text-align: center; }
.composer .examples { margin: 12px 0 0; }
.composer-send { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 19px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.composer-send:hover { background: var(--ink-2); }
.msg-bot .msg-body { background: none; border: 0; box-shadow: none; padding: 4px 0 0; }
.msg-label { font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.msg-next { background: none; border: 0; border-left: 3px solid var(--hl-2); border-radius: 0; padding: 2px 0 2px 12px; }
.answer-more { margin-top: 4px; border-top: 1px solid var(--line); }
.answer-more > summary { font-size: 15.5px; padding: 12px 44px 12px 0; }
.fold-h { margin: 12px 0 6px; font-size: 15px; color: var(--ink); }
.chat-after { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 6px 48px; font-size: 15px; color: var(--ink-2); }
.chat-after p { margin: 0; }
.chat-after a { color: var(--ink); font-weight: 650; text-decoration-color: var(--hl-2); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.chat-after .linkback { margin: 0; font-size: 14px; }
.followups { border-top: 0; padding-top: 0; margin-top: 12px; }
.msg-bot .sources { border-top: 0; padding-top: 0; margin-top: 14px; }
@media (max-width: 640px) {
  .chat-after { margin-left: 0; }
  .msg-bot .msg-avatar { display: none; }
  .chat-hello { padding-top: 2vh; }
  .view-chat.is-empty .composer { padding-bottom: 6vh; }
}

/* ------------------------------------------------------------------ other pages */
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3fbf1a; }
.grad { background: linear-gradient(transparent 56%, var(--hl) 56%, var(--hl) 92%, transparent 92%) no-repeat; }
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 62px); line-height: 1.02; letter-spacing: -0.025em; max-width: 18ch; margin-bottom: 24px; }
.plain-list { margin: 0; padding-left: 20px; color: var(--muted); }
.plain-list li { margin-bottom: 10px; }
.plain-list strong { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signup { margin-top: 40px; padding: 32px 28px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.signup h2 { font-family: var(--display); color: var(--ink); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.01em; text-transform: none; font-weight: 600; }
.signup-form { max-width: 560px; }
.global-join { margin: 8px 0 56px; }
.global-join .signup-form { background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); margin-bottom: 20px; }

/* ------------------------------------------------------------------ footer */
.legal { margin-top: 0; border-top: 1px solid var(--line); background: var(--paper-2); padding: 36px 0 48px; }
.legal p { margin: 0 0 7px; color: var(--faint); font-size: 13.5px; line-height: 1.6; }
.legal .mark { color: var(--ink); font-weight: 600; }
.legal a { color: var(--muted); }
main > .wrap > .view#view-mode + * { margin-top: 0; }
body > main { padding-bottom: 0; }
main .faq-wrap { padding-bottom: 0; }

/* ------------------------------------------------------------------ reveal */
.fx .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.fx .reveal.in { opacity: 1; transform: none; }
.modes .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.modes .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .window { transform: none; }
  .demo-grid, .cta-inner, .two-col { grid-template-columns: 1fr; }
  .stats, .privacy-points, .steps, .modes { grid-template-columns: 1fr; }
  .honest ul { columns: 1; }
  .section { padding-top: 76px; }
  .band, .cta { margin-top: 76px; padding: 72px 20px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .masthead .wrap { flex-wrap: nowrap; gap: 12px; }
  .topnav { gap: 14px; flex-wrap: nowrap; }
  .topnav a:not(.btn) { display: none; }
  .tagline { display: none; }
  .masthead .wrap { min-height: 60px; }
  .hero-ask { flex-wrap: wrap; padding: 8px; }
  .hero-ask input[type="text"] { flex-basis: 100%; padding: 10px 10px; }
  .hero-ask .btn { width: 100%; }
  .window-body { min-height: 440px; padding: 18px 16px 60px; }
  .bucket-head { flex-direction: column; gap: 10px; }
  .faq summary { font-size: 19px; }
  .demo-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx .reveal { opacity: 1; transform: none; }
  .fx mark.hl { background-size: 100% 100%; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-row { flex-wrap: wrap; }
  .marquee-row[aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  html, body { background: #fff; color: #000; font-size: 11.5pt; }
  .masthead { position: static; background: #fff; border-bottom: 1px solid #000; }
  .no-print, .linkback, .btn, .actions, .topnav, .window, .marquee, .demo, .band, .cta, .faq-wrap, .hero-ask, .hero-chips, .examples { display: none !important; }
  .fx .reveal { opacity: 1 !important; transform: none !important; }
  .bucket, .panel, .disclaimer-band, .honest, .passage { background: #fff; border: 1px solid #999; break-inside: avoid; box-shadow: none; animation: none !important; }
  #ask-target > *, #map-target > * { animation: none !important; }
  .chip { border-color: #000 !important; color: #000 !important; background: #fff !important; }
  .legal { background: #fff; border-top: 1px solid #000; }
  .legal p { color: #000; }
}

/* Inner pages (firms, thanks, privacy) read at document width. */
main.page > .wrap { max-width: 900px; padding-bottom: 88px; }
main.page .page-hero h1 { max-width: 20ch; }

/* ---------- Client Desk (desk.html) ---------- */
.desk textarea { width: 100%; min-height: 96px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16.5px; line-height: 1.5; resize: vertical; }
.desk textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.desk-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.desk-row .examples { margin: 0; }
.desk-out { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.desk-out[hidden] { display: none; }
.desk-out .panel { margin: 0; min-width: 0; }
.desk-out h3 { margin: 18px 0 6px; font-size: 15px; letter-spacing: .01em; }
.desk-rule { font-family: var(--display); font-size: 20px; line-height: 1.35; color: var(--ink); margin: 0 0 8px; }
.desk-status { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.desk-cites { margin: 6px 0 0; font-size: 14px; color: var(--faint); }
.desk-quote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid var(--hl); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14.5px; }
.desk-quote p { margin: 0 0 6px; }
.desk-src { font-size: 12.5px; color: var(--faint); }
.desk-draft textarea { width: 100%; min-height: 360px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.draft-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--hl); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
@media (max-width: 860px) { .desk-out { grid-template-columns: 1fr; } }

/* ---------- Notice Desk (notices.html) ---------- */
.nd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.nd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.nd-field[hidden] { display: none; }
.nd-wide { grid-column: 1 / -1; }
.nd-keep { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
.nd-keep .linkback { margin: 0; }
.desk-sign { margin-top: 20px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.desk-sign summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.desk-sign .nd-grid { margin: 12px 0; }
.desk-sign .linkback { margin: 0 0 0 12px; }
.nd-check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.nd-check-label input { width: 18px; height: 18px; accent-color: var(--ink); }
.nd-field label, .nd-field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 2px; }
.nd-field select, .nd-field input[type=date], .nd-field input[type=text], .nd-field input[type=search] { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.nd-field select:focus, .nd-field input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.nd-pos { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-docs-h { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sd-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 860px) { .sd-docs { grid-template-columns: 1fr; } }
.nd-radio { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 15px; cursor: pointer; }
.nd-radio:has(input:checked) { background: var(--hl); border-color: var(--hl-2); }
.nd-out { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.nd-out[hidden] { display: none; }
.nd-out .panel { margin: 0; min-width: 0; }
.nd-out .panel[hidden] { display: none; }
.nd-out .desk-draft { grid-column: 1 / -1; }
.nd-big { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.nd-deadline { border-left: 4px solid var(--clay); }
.nd-meter { border-left: 4px solid var(--hl-2); }
.nd-record { border-left: 4px solid var(--ink); }
.time-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.time-row label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.time-row input { width: 110px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.time-line { margin-top: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nd-record textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.nd-check { margin: 0; padding-left: 20px; }
.nd-check li { margin-bottom: 6px; }
.nd-btns { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.nd-out .desk-draft textarea { width: 100%; min-height: 320px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--mono); resize: vertical; }
@media (max-width: 860px) { .nd-grid { grid-template-columns: 1fr; } .nd-out { grid-template-columns: 1fr; } }

/* ---------- Firms page: the workspace ---------- */
.firm-hero h1 { font-size: clamp(44px, 5.8vw, 80px); }
.window-nd::after { content: 'Drafted for your review'; }
.fw-mail { margin: 0 0 14px; padding: 12px 14px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: 10px; font: 13.5px/1.55 var(--mono); color: var(--ink-2); white-space: pre-wrap; min-height: 150px; }
.fw-deadline .w-reading { color: var(--clay); }
.fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.fit-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px 22px; }
.fit-card h3 { font-family: var(--display); font-size: 23px; font-weight: 600; margin: 14px 0 8px; letter-spacing: -0.01em; }
.fit-card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.fit-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--hl); color: var(--ink); font-weight: 800; font-size: 20px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.app-tile { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: 24px 22px 22px; color: var(--ink); text-decoration: none; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-1) ease; }
a.app-tile:hover, a.app-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink); }
.app-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-family: var(--display); font-size: 28px; font-weight: 700; margin-bottom: 10px; color: #fff; background: var(--forest); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.app-icon-notice { background: var(--clay); }
.app-icon-answer { background: var(--forest); }
.app-icon-reply { background: #2f5d8a; }
.app-icon-org { background: #6b4fa0; }
.app-icon-law { background: var(--green); }
.app-icon-review { background: var(--ink-2); }
.app-name { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.app-sub { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1 1 auto; }
.app-state { position: absolute; top: 22px; right: 20px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--faint); border: 1px solid var(--line); }
.app-state.app-live { background: var(--hl); color: var(--ink); border-color: var(--hl-2); }
.firm-partner { margin-top: 104px; }
@media (max-width: 960px) { .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fit-grid, .app-grid { grid-template-columns: 1fr; } }

/* ---------- Chrome side panel (apps/extension) ---------- */
.in-panel .masthead .tagline { display: block; }
.in-panel .topnav a:not(.btn) { display: none; }
.panel-home { padding: 28px 0 8px; }
.panel-home h1 { font-size: 34px; line-height: 1.05; margin: 0 0 10px; }
.panel-home .app-grid { grid-template-columns: 1fr; margin-top: 20px; gap: 12px; }
.panel-home .app-tile { padding: 18px 18px 16px; border-radius: 20px; }
.panel-home .app-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; margin-bottom: 6px; }
.panel-home .app-name { font-size: 21px; }
.panel-tip { margin-top: 16px; }
.in-panel .page-hero h1 { font-size: 32px; }

/* ------------------------------------------------------------------ the simple front page
 * One box, one waitlist button, one small menu. Everything else lives behind the menu. */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* The one header for the public pages: the pages in a row, "Join the
 * waitlist" as the main button, everything in a Menu on smaller screens. */
.masthead .wrap.nav { flex-wrap: nowrap; gap: 28px; }
.site-links { display: flex; align-items: center; gap: 4px; }
.site-links a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 550;
  text-decoration: none; white-space: nowrap; transition: color var(--dur-1, .15s) ease, background var(--dur-1, .15s) ease;
}
.site-links a:hover { color: var(--ink); background: var(--paper-2); }
.site-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-signin { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 6px; white-space: nowrap; }
.nav-signin:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-join { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 11px 18px; font-size: 15px; box-shadow: 0 6px 18px rgba(14, 20, 17, 0.18); }
.btn-join:hover { transform: translateY(-1px); }
.join-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.28); flex: 0 0 auto; }
.masthead .menu { display: none; }
.menu summary { white-space: nowrap; }
@media (max-width: 640px) {
  .masthead .wrap.nav { gap: 10px; }
  .nav-right { gap: 8px; }
  .nav-right .btn-join { padding: 10px 13px; font-size: 14.5px; gap: 7px; }
}
@media (max-width: 360px) { .join-dot { display: none; } }
.menu-list a[aria-current="page"] { background: var(--paper-2); font-weight: 600; }
@media (max-width: 1060px) {
  .site-links, .nav-signin { display: none; }
  .masthead .menu { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .join-dot { animation: join-pulse 2.4s ease-in-out infinite; }
  @keyframes join-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.28); } 50% { box-shadow: 0 0 0 6px rgba(216, 255, 62, 0.12); } }
}
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 600; color: var(--ink); background: var(--card);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ' \25BE'; color: var(--faint); }
.menu[open] summary { border-color: var(--ink); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 30;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.menu-list a { padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--paper-2); }

.view-chat .chat-hello .eyebrow { justify-content: center; }
.view-chat.is-empty .composer { padding-bottom: 0; }
.composer .examples .chipbtn { font-size: 15px; }

.join-band {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap;
  margin: 28px 0 auto; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--hl); border: 1px solid var(--hl-2);
}
.join-band-copy { margin: 0; font-size: 17px; color: var(--ink); }
.join-band-btn { font-size: 17px; padding: 15px 26px; }
.view-chat:not(.is-empty) .join-band { display: none; }
.view-chat.is-empty { padding-bottom: 8vh; }

dialog.join {
  width: min(480px, calc(100vw - 32px)); max-width: none; padding: 30px 28px 24px; margin: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
dialog.join::backdrop { background: rgba(14, 20, 17, 0.55); }
dialog.join h2 { font-family: var(--display); font-size: 30px; line-height: 1.1; margin: 4px 0 10px; color: var(--ink); letter-spacing: -0.01em; text-transform: none; font-weight: 700; }
.join-lede { margin: 0 0 18px; color: var(--ink-2); }
.join-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}
.join-close:hover { background: var(--paper-2); }
.join-row { display: flex; gap: 8px; }
.join-row input { flex: 1 1 auto; min-width: 0; font-size: 17px; padding: 14px 14px; }
.join-row .btn { font-size: 17px; padding: 14px 24px; }
.join-form .hint { margin: 12px 0 0; font-size: 13px; }
.join-form .hint a { color: var(--ink); }

@media (max-width: 640px) {
  .nav-right .btn { padding: 10px 14px; font-size: 14.5px; }
  .menu summary { padding: 9px 12px; font-size: 14.5px; }
  .join-band { padding: 18px; }
  .join-band-btn { width: 100%; }
  .join-row { flex-direction: column; }
  .join-row .btn { width: 100%; }
  dialog.join { padding: 26px 20px 20px; }
}
@media print { .join-band, dialog.join, .nav-right { display: none !important; } }
.view-chat.is-empty .chat-top { display: none; }
.view-chat.is-empty .chat-hello { margin-top: 0; padding-top: 11vh; }
@media (max-width: 640px) { .view-chat.is-empty .chat-hello { padding-top: 5vh; } .chat-sub { font-size: 16px; } }

/* Client Desk: recent questions (this browser only) and the reply actions. */
.desk-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.desk-history { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.desk-history .desk-row { margin-top: 0; }
.desk-history h3 { margin: 0; font-size: 15px; }
.desk-history-list { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.desk-history-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.desk-history-q { appearance: none; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15.5px; color: var(--ink); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.desk-history-q:hover { text-decoration-color: var(--ink); }
.desk-history-meta { font-size: 13px; color: var(--faint); }

/* Firm sign-in (account.html). */
.acct { max-width: 620px; }
.acct-card { margin-top: 28px; }
.acct-card h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 40px); line-height: 1.1; margin: 0 0 12px; }
.acct-row { display: flex; gap: 8px; margin: 18px 0 10px; }
.acct-row input { flex: 1 1 auto; min-width: 0; font-size: 17px; }
.acct-sent { font-weight: 600; color: var(--green); }
.acct-links { display: flex; gap: 18px; margin-top: 18px; }
@media (max-width: 640px) { .acct-row { flex-direction: column; } .acct-row .btn { width: 100%; } }

/* Client Desk: who is signed in, and rating an answer. */
.desk-account { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; font-size: 14.5px; color: var(--faint); }
.desk-account a { color: var(--ink); font-weight: 600; }
.desk-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.desk-rate .chipbtn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.desk-rate-done { color: var(--green); font-weight: 600; }
.acct-sure { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper-2); font-size: 15px; }

/* ------------------------------------------------- Is that VALID? (check.html) */
.check-form { display: flex; gap: 12px; align-items: stretch; max-width: 760px; margin: 0 0 10px; }
.check-form textarea {
  flex: 1 1 auto; min-height: 58px; resize: vertical; padding: 16px 18px; font: inherit; font-size: 17px; line-height: 1.45;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--ink);
}
.check-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.check-form .btn { flex: 0 0 auto; }
.check-result { margin: 8px 0 40px; scroll-margin-top: 90px; }
.verdict-card {
  max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 30px; box-shadow: var(--shadow-sm); border-top: 8px solid var(--ink);
}
.verdict-card.verdict-valid { border-top-color: var(--green); }
.verdict-card.verdict-half { border-top-color: var(--warn); }
.verdict-card.verdict-not_valid { border-top-color: var(--clay); }
.verdict-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.verdict-kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.verdict-stamp { margin: 0; padding: 8px 16px; border-radius: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--ink); }
.verdict-valid .verdict-stamp { background: var(--green); }
.verdict-half .verdict-stamp { background: var(--warn); }
.verdict-not_valid .verdict-stamp { background: var(--clay); }
.verdict-note { margin: 0 0 6px; color: var(--faint); font-size: 14.5px; }
.verdict-claim { margin: 0 0 22px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 600; }
.verdict-h { margin: 0 0 10px; }
.verdict-why { margin: 0 0 16px; padding-left: 20px; }
.verdict-why li { margin-bottom: 8px; }
.verdict-src { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.verdict-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.verdict-disc { margin: 0; font-size: 13px; color: var(--faint); }
.verdict-none { max-width: 760px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.verdict-none-h { font-weight: 700; margin: 0 0 6px; }
.check-all { margin: 10px 0 30px; }
.claim-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.claim-chip {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; text-align: left;
  padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--ink); border-radius: var(--r);
  font: inherit; color: var(--ink); cursor: pointer; transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.claim-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.claim-chip.verdict-valid { border-left-color: var(--green); }
.claim-chip.verdict-half { border-left-color: var(--warn); }
.claim-chip.verdict-not_valid { border-left-color: var(--clay); }
.claim-chip-text { font-size: 16px; line-height: 1.4; }
.claim-chip-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.verdict-valid .claim-chip-tag { color: var(--green); }
.verdict-half .claim-chip-tag { color: var(--warn); }
.verdict-not_valid .claim-chip-tag { color: var(--clay); }

/* ------------------------------------------- The AI Tax Exam and the kit */
.exam-grid, .exam-steps, .kit-list, .exam-form { margin: 0 0 40px; max-width: 900px; }
.exam-takers { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.exam-takers li { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-weight: 650; }
.exam-steps ol { margin: 0; padding-left: 22px; }
.exam-steps li { margin-bottom: 12px; }
.kit-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 14px; }
.kit-cols h3 { margin: 0 0 8px; font-size: 16px; }
.kit-cols ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.kit-cols li { margin-bottom: 6px; }
.exam-form .lede { margin-bottom: 18px; }
@media (max-width: 760px) {
  .check-form { flex-direction: column; }
  .kit-cols { grid-template-columns: 1fr; }
  .verdict-card { padding: 22px 18px; }
}

/* "Run this at your firm" — the pilot ask at the end of a Notice Desk or Client Desk result. */
.pilot-cta { border-left: 6px solid var(--hl); }
.pilot-cta p { max-width: 70ch; }

/* The practice round on the AI Tax Exam page. */
.practice-list { padding-left: 22px; margin: 0 0 16px; }
.practice-item { margin-bottom: 22px; }
.practice-claim { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.practice-verdict { margin: 0 0 8px; color: var(--muted); }
.practice-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.practice-marks [aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.practice-done { padding: 18px 20px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }

/* Your 2025 tax changes (apps/web/changes.html). */
.ch-quiz { max-width: 760px; }
.ch-progress { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ch-question { margin: 0 0 18px; font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 600; }
.ch-answers .btn { min-width: 110px; }
.ch-result { margin-top: 20px; }
.ch-rule { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.ch-rule h3 { margin: 0 0 8px; }
.ch-next { margin: 0 0 12px; }

/* ---------- Home: below-the-fold "why" (problem, two doors, live today, where it's going) ---------- */
.cta-link { align-self: center; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hl-2); }
.cta-link:hover { text-decoration-color: var(--ink); }
.why { max-width: 960px; margin: 0 auto; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.view-chat:not(.is-empty) ~ .why { display: none; }
.why .display { max-width: 20ch; }
.why .kicker { margin-top: 48px; }
.why > .kicker:first-child { margin-top: 0; }
.why-problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-problems li { border-top: 2px solid var(--ink); padding-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.why-problems strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.why-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.why-door { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.why-door h3 { margin: 0; font-size: 21px; color: var(--ink); }
.why-door p { margin: 0; color: var(--muted); }
.why-door .cta-link { align-self: flex-start; margin-top: auto; padding-top: 8px; }
.why-who { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink) !important; }
.why-stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.why-stats .stat { border-top-color: var(--line-2); }
.why-stats .stat-num { color: var(--ink); font-size: clamp(40px, 5vw, 64px); }
.why-stats .stat-label { color: var(--muted); }
.why-note { color: var(--muted); margin: 0; }
.why-road { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.why-road li { color: var(--muted); }
.why-road strong { display: inline-block; min-width: 9em; color: var(--ink); }
.why-goal { margin: 40px 0 0; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: var(--ink); }
@media (max-width: 760px) {
  .why { padding-top: 48px; }
  .why-problems, .why-doors { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; }
  .why-road strong { display: block; }
}

/* The sign-up strip at the end of a result, and the invite panel (join.js). */
.join-strip {
  margin: 28px 0; padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--hl); border: 1px solid var(--hl-2); color: var(--ink);
}
.join-strip[hidden] { display: none; }
.join-strip .kicker { margin: 0 0 4px; }
.join-strip h2 { font-family: var(--display); font-size: 28px; line-height: 1.12; margin: 0 0 8px; color: var(--ink); text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
.join-strip .join-lede { color: var(--ink); max-width: 620px; }
.join-strip .join-row input { background: var(--card); }
.join-strip .join-form .hint { color: var(--ink); }
.invite[hidden] { display: none; }
.invite { margin: 8px 0 24px; border: 2px solid var(--ink); }
.invite h2 { font-family: var(--display); font-size: 28px; line-height: 1.12; margin: 2px 0 8px; color: var(--ink); text-transform: none; letter-spacing: -0.01em; font-weight: 700; }
.invite-row { display: flex; gap: 8px; margin: 14px 0; }
.invite-row input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 13px 14px; }
.invite-to { flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) {
  .join-strip { padding: 22px 18px; }
  .join-strip h2 { font-size: 24px; }
  .join-strip .join-row, .invite-row { flex-direction: column; }
}

/* The stamp reel on the home page (hero.js). The mascot is a rubber stamp. */
.reel { display: block; position: relative; max-width: 560px; margin: 26px auto 0; padding: 0 0 8px; text-decoration: none; color: var(--ink); }
.view-chat:not(.is-empty) .reel { display: none; }
.reel-card { display: block; position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px 132px 30px 26px; min-height: 172px; text-align: left; overflow: hidden; }
.reel-kicker { display: block; font: 600 12px/1 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.reel-claim { display: block; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.reel-mark { display: inline-block; margin-top: 14px; padding: 4px 14px; border: 4px solid currentColor; border-radius: 10px; font-weight: 800; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; transform: rotate(-6deg); }
.reel-mark.v-valid { color: #2f8f1f; } .reel-mark.v-half { color: #b86f00; } .reel-mark.v-not_valid { color: #c8261c; }
.reel-bot { position: absolute; right: 18px; top: 34px; width: 104px; height: 125px; }
.reel-cta { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-2); }
.reel-cta u { color: var(--ink); text-decoration-color: var(--hl-2); text-decoration-thickness: 3px; }
.reel:hover .reel-card { border-color: var(--ink); }
.reel:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: var(--r-lg); }
.reel-pause { display: block; margin: 4px auto 0; padding: 6px 12px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.reel-pause:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.view-chat:not(.is-empty) .reel-pause { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .reel.slam .reel-bot { animation: reel-slam 1.1s cubic-bezier(.3, .7, .2, 1) both; }
  .reel.slam .reel-mark { animation: reel-mark 1.1s ease-out both; }
  .reel.slam .reel-claim { animation: reel-in .45s ease-out both; }
  .reel-bot { animation: reel-bob 2.4s ease-in-out infinite; }
}
@keyframes reel-slam {
  0% { transform: translate(0, 0) rotate(0); }
  30% { transform: translate(-36px, -26px) rotate(-10deg); }
  46% { transform: translate(-58px, 34px) rotate(4deg) scale(1.08, .86); }
  60% { transform: translate(-58px, 30px) rotate(3deg) scale(.98, 1.04); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes reel-mark { 0%, 42% { opacity: 0; transform: rotate(-6deg) scale(1.7); } 52% { opacity: 1; transform: rotate(-6deg) scale(.96); } 62%, 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes reel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes reel-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 520px) {
  .reel-card { padding: 20px 96px 22px 18px; min-height: 150px; }
  .reel-claim { font-size: 21px; }
  .reel-mark { font-size: 18px; }
  .reel-bot { width: 78px; height: 94px; right: 12px; top: 30px; }
}
.view-chat.is-empty .chat-hello { padding-top: 5vh; }
@media (max-width: 640px) { .view-chat.is-empty .chat-hello { padding-top: 3vh; } }

/* ---------------------------------------------------- the OS workspace (home) */
/* Owner direction 2026-10-13: the home page shows VALID as an operating system,
   not a feed. A window with an app dock and a queue of finished work. */
.os { max-width: 860px; margin: 30px auto 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.view-chat:not(.is-empty) .os { display: none; }
.os-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 13px; }
.os-dots { display: inline-flex; gap: 6px; }
.os-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.os-dots i:first-child { background: var(--hl-2); }
.os-title { font-weight: 600; color: var(--ink-2); }
.os-tag { margin-left: auto; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.os-body { display: grid; grid-template-columns: 236px 1fr; }
.os-dock { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-right: 1px solid var(--line); background: var(--paper); }
.os-app { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.os-app:hover { background: var(--paper-2); }
.os-app.is-on { background: var(--ink); color: var(--paper); }
.os-app.is-soon { color: var(--faint); font-weight: 500; }
.os-st { font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.os-app.is-on .os-st { color: var(--hl); opacity: 1; }
.os-main { padding: 18px 20px 16px; }
.os-h { margin: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
.os-queue { list-style: none; margin: 0; padding: 0; }
.os-queue li { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.os-kind { font-weight: 700; color: var(--ink-2); }
.os-what { color: var(--muted); }
.os-state { justify-self: end; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.os-state.is-ready { background: var(--hl); border-color: var(--hl-2); color: var(--ink); }
.os-note { margin: 12px 0 0; font-size: 13px; color: var(--faint); }
@media (max-width: 720px) {
  .os-body { grid-template-columns: 1fr; }
  .os-dock { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .os-app { flex: 1 1 auto; }
  .os-queue li { grid-template-columns: 1fr auto; }
  .os-what { grid-column: 1 / -1; grid-row: 2; }
}
@media print { .os { display: none; } }

/* Notice Library: every IRS notice page, searchable, in the IRS's own words. */
.nl-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-height: 460px; overflow-y: auto; }
.nl-item { appearance: none; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; display: grid; gap: 2px; }
.nl-item:hover, .nl-item:focus-visible { border-color: var(--ink); }
.nl-item-code { font-weight: 700; }
.nl-item-about { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.nl-item-kit { justify-self: start; margin-top: 4px; font-size: 12px; font-weight: 700; background: var(--hl); border-radius: 999px; padding: 2px 10px; }
.nl-kit { background: var(--paper-2); border-left: 3px solid var(--hl-2); border-radius: 0 10px 10px 0; padding: 10px 14px; }
#nl-words h3 { margin: 18px 0 6px; font-size: 16px; }
#nl-words p, .nl-ul { margin: 0 0 8px; overflow-wrap: anywhere; }
.nl-ul { padding-left: 20px; }
.nl-q-line { font-weight: 600; color: var(--ink-2); }
.nd-out .nl-words-panel { grid-column: 1 / -1; }
