:root {
  --bg: #000000;
  --panel: #0B0A12;
  --deep: #08061A;
  --field: #17122F;
  --line: #262048;
  --line2: #3A3166;
  --line3: #5B45A8;
  --text: #EEEDF2;
  --bright: #F2F0F5;
  --text2: #C8C6CC;
  --muted: #9A97A3;
  --accent: #8B5CF6;
  --good: #6EE7B7;
  --grid: rgba(255, 255, 255, 0.045);
  --sliver: #0B0B0C;
  --brushed: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 3px), linear-gradient(135deg, #3F1C99 0%, #6A3FE0 50%, #4A23AE 100%);
  --gold: repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.10) 1px, transparent 1px, transparent 4px), linear-gradient(90deg, #5E430F, #A98431, #6F5116, #9A762A);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Archivo', system-ui, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--bg); border: 1px solid var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }

/* header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 36px; height: 38px; object-fit: contain; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; font-size: 15px; }
.nav a:not(.btn) { color: var(--text2); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--bright); }
.header-aside { font-size: 15px; color: var(--text2); text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; background-color: #5B2FC9; background-image: var(--brushed); color: #FFFFFF; font-family: var(--sans); font-weight: 400; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--accent); color: var(--accent); background: transparent; font-family: var(--sans); font-weight: 400; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-outline:hover { background: rgba(139, 92, 246, 0.08); }
.btn:disabled { background: var(--line2); color: var(--text2); cursor: not-allowed; filter: none; }

.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-family: var(--sans); font-weight: 400; font-size: 15px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--line3); color: var(--bright); }
.chip[aria-pressed="true"] { border-color: var(--accent); background-image: var(--brushed); color: #FFFFFF; }
.chip.q { min-height: 48px; padding: 10px 14px; }

/* type */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow.ruled { display: flex; align-items: center; gap: 12px; }
.eyebrow.ruled::before { content: ""; width: 48px; height: 3px; background-image: var(--gold); flex: none; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
h1, h2, h3 { font-weight: 300; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; font-weight: 400; }
.lede { font-size: 20px; color: var(--text2); max-width: 680px; }
.muted { color: var(--muted); }
.soft { color: var(--text2); }
.small { font-size: 15px; }
.tiny { font-size: 14px; }
.strong { font-weight: 400; }
p { margin: 0; }

/* sections */
.section { padding-bottom: 110px; }
.section-head { margin: 14px 0 40px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 14px 0 36px; }
.sliver { height: 10px; margin-bottom: 64px; background-color: var(--sliver); box-shadow: 0 0 0 100vmax var(--sliver); clip-path: inset(0 -100vmax); background-image: var(--gold); background-size: 100% 2px; background-repeat: no-repeat; background-position: bottom; }

.grid { display: grid; gap: 16px; }
.g260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.g300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split > .wide { flex: 999 1 520px; }

.card { border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card.lit { border-color: var(--line3); }
.card.on { border-color: var(--accent); }
.card.fill { background: rgba(23, 18, 47, 0.6); }
.rule-top { border-top: 2px solid var(--accent); padding-top: 16px; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; padding: 4px 8px; border: 1px solid var(--accent); color: var(--accent); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hero-main { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin-top: 20px; }
.hero .lede { margin-top: 24px; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.sheet { flex: 1 1 240px; min-width: 0; border: 1px dashed rgba(139, 92, 246, 0.45); padding: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.sheet div { display: flex; justify-content: space-between; gap: 12px; }
.sheet b { font-weight: 400; color: var(--text); }
.sheet hr { border: 0; height: 1px; background: rgba(139, 92, 246, 0.3); margin: 0; width: 100%; }

/* demo */
.panel { border: 1px solid rgba(139, 92, 246, 0.5); background: rgba(14, 11, 31, 0.88); }
.panel-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 20px; border-bottom: 1px solid rgba(139, 92, 246, 0.25); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.panel-body { padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 24px; }
.demo-pick { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { flex-direction: column; flex-wrap: nowrap; }
.answer { flex: 999 1 480px; min-width: 0; border: 1px solid var(--line); background: var(--deep); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.answer-text { font-size: 18px; white-space: pre-line; color: var(--bright); }
.sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.src { font-family: var(--mono); font-size: 12px; padding: 5px 9px; border: 1px solid var(--line2); color: var(--text); }
.answer-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 14px; }
.status { font-family: var(--mono); font-size: 12px; padding: 5px 9px; border: 1px solid var(--good); color: var(--good); }
.status.wait { border-color: var(--bright); color: var(--bright); }
.status.flag { border-color: var(--muted); color: var(--muted); }
.ghost { min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); background: transparent; color: var(--text2); font-family: var(--sans); font-weight: 300; font-size: 14px; cursor: pointer; }
.ghost:hover { border-color: var(--line3); color: var(--bright); }

/* lists */
.desks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border-top: 1px solid var(--line); }
.desks > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ladder { border-top: 1px solid var(--bright); }
.rung { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rung .n { width: 40px; font-family: var(--mono); color: var(--accent); }
.rung .name { flex: 1 1 260px; font-size: 22px; font-weight: 400; }
.rung .text { flex: 2 1 380px; color: var(--text2); }
.rung .shape { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rung.last { background: linear-gradient(90deg, rgba(139, 92, 246, 0.06), transparent 70%); }
.callout { margin-top: 24px; border: 1px dashed var(--accent); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); border: 1px solid var(--line); }
.steps > div { padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: flex; flex-direction: column; gap: 6px; }
.steps .name { font-weight: 400; font-size: 18px; }

/* tax diagram */
.tax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 14px; text-align: center; }
.tax-grid div { border: 1px dashed #4A4080; padding: 12px 6px; color: var(--text2); }
.tax-grid .owner { border: 2px solid var(--bright); color: var(--bright); }
.flow { display: flex; align-items: center; gap: 14px; }
.flow .n { font-family: var(--mono); font-size: 12px; color: var(--accent); width: 26px; flex: none; }
.flow .step { flex: 1; border: 1px solid var(--line2); padding: 10px 14px; font-size: 15px; color: var(--text2); }
.flow .step.on { border-color: var(--accent); color: var(--accent); }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--mono); font-size: 13px; color: var(--text2); }
.input { height: 56px; padding: 0 18px; background: var(--field); border: 1px solid var(--line2); color: var(--text); font-family: var(--mono); font-size: 18px; width: 100%; border-radius: 0; }
.input.sm { height: 48px; font-size: 16px; padding: 0 14px; font-family: var(--sans); }
.input::placeholder { color: #6E6A80; }
.input:focus { border-color: var(--accent); outline: none; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row .field { flex: 999 1 340px; }
.form-row .btn { flex: 1 1 200px; height: 56px; font-size: 17px; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row .top { display: flex; justify-content: space-between; gap: 12px; }
.bar { height: 6px; background: #1B1638; }
.bar > span { display: block; height: 6px; }
.obs { border: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 14px; }
.obs .n { font-family: var(--mono); color: var(--bright); flex: none; }
.obs.next { border-color: var(--accent); }
.obs.next .n { color: var(--accent); }

.cta-box { border: 1px solid var(--accent); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-box h2 { font-size: clamp(30px, 4vw, 48px); max-width: 700px; }
.cta-box .ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }

/* intake */
.intake { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.intake-form { flex: 999 1 560px; min-width: 0; border: 1px solid var(--line2); background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 28px; }
.office { flex: 1 1 380px; min-width: 0; border: 1px solid var(--accent); background: var(--deep); font-family: var(--mono); font-size: 14px; position: sticky; top: 16px; }
.office-bar { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.office-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.kv { display: flex; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv .k { width: 110px; flex: none; color: var(--muted); }
.kv .v { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
.kv .v.wait { color: var(--muted); }
.kv .v.flagged { color: var(--bright); }
.kv .v.lit { color: var(--accent); }
.prose-box { font-family: var(--sans); font-size: 15px; color: var(--text); border: 1px solid var(--line); padding: 12px 14px; white-space: pre-line; }
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.who .field label { font-family: var(--sans); font-size: 14px; }
.sent { border: 1px solid var(--good); color: var(--good); padding: 14px 16px; font-family: var(--sans); font-size: 15px; }
@media (max-width: 960px) { .office { position: static; } }

/* compare */
.compare { display: grid; border: 1px solid var(--line2); overflow: hidden; }
.compare > * { grid-area: 1 / 1; }
.compare .divider { justify-self: start; width: 2px; background: var(--accent); }
.compare input[type=range] { width: 100%; min-height: 44px; accent-color: var(--accent); }
.old-site { background: #F3F0E6; color: #222; font-family: 'Times New Roman', serif; min-height: 460px; display: flex; flex-direction: column; }
.new-site { background: #F7F5F0; color: #1B1F24; min-height: 460px; display: flex; flex-direction: column; font-family: var(--sans); font-weight: 400; }
@media (max-width: 640px) { .new-site .two { grid-template-columns: 1fr !important; } }

/* intro */
.intro { display: none; }
html.intro-on .intro { display: flex; position: fixed; inset: 0; z-index: 100; background: #FFFFFF; align-items: center; justify-content: center; cursor: pointer; transition: opacity 0.7s ease; }
html.intro-lock, html.intro-lock body { overflow: hidden; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.intro.out { opacity: 0; pointer-events: none; }
.intro-skip { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(0, 0, 0, 0.18); background: rgba(255, 255, 255, 0.8); color: #3A3A3A; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; cursor: pointer; }

/* links to detail pages */
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 20px; color: var(--accent); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.more::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width 0.2s ease; }
.more:hover::after { width: 44px; }
.nav a[aria-current="page"] { color: var(--bright); }
.page-hero { padding-top: 56px; padding-bottom: 64px; }
.page-hero h1 { margin-top: 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; max-width: 980px; }
.page-hero .lede { margin-top: 20px; }
.hero.tight { padding-top: 56px; padding-bottom: 40px; }
.rung.short .name { flex: 1 1 220px; }
.rung.short .shape { flex: 0 0 auto; }
@media (max-width: 760px) { .sheet { display: none; } }
