:root {
  color-scheme: light;
  --ink: #0b1220;
  --muted: #586172;
  --line: #dce1e8;
  --paper: #f5f7fa;
  --white: #ffffff;
  --lime: #b9f227;
  --lime-dark: #1e3300;
  --danger: #9f2436;
  --shadow: 0 18px 50px rgba(11, 18, 32, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, label[for] { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 250, 0.93);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  border-radius: .5rem .5rem .5rem .1rem;
}
.brand-accent { color: #517600; }
nav { display: flex; gap: 2rem; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .92rem; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.ghost-button { justify-self: end; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .55rem .75rem; }

main { overflow: hidden; }
.workspace { max-width: 1120px; margin: 0 auto; padding: 5rem 2rem 4rem; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.eyebrow { margin: 0 0 .7rem; font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.065em; }
.lede { max-width: 660px; color: var(--muted); font-size: 1.08rem; margin: 1.25rem 0 0; }
.privacy-pill { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .65rem .9rem; background: var(--white); font-size: .88rem; font-weight: 700; box-shadow: 0 5px 20px rgba(11, 18, 32, .05); }
.privacy-pill span { color: #5b8d00; font-size: .7rem; margin-right: .35rem; }

.tool-tabs { display: flex; gap: .4rem; margin: 0 0 -1px .75rem; position: relative; z-index: 2; overflow-x: auto; }
.tool-tab { border: 1px solid transparent; background: transparent; padding: .85rem 1.1rem; color: var(--muted); font-weight: 750; cursor: pointer; white-space: nowrap; }
.tool-tab.active { background: var(--white); color: var(--ink); border-color: var(--line); border-bottom-color: var(--white); border-radius: .75rem .75rem 0 0; }
.tool-panel { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); }
.drop-zone { min-height: 250px; border: 2px dashed #aeb7c3; border-radius: .8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; cursor: pointer; transition: .18s ease; background: linear-gradient(145deg, rgba(185, 242, 39, .06), rgba(255,255,255,0) 45%); }
.drop-zone:hover, .drop-zone.dragging { border-color: #6d9400; background: rgba(185, 242, 39, .1); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 1.7rem; font-weight: 900; margin-bottom: 1rem; }
.drop-zone strong { font-size: 1.28rem; }
.drop-zone > span:last-child { color: var(--muted); margin-top: .35rem; font-size: .9rem; }
.file-list { display: grid; gap: .6rem; margin-top: 1rem; }
.file-item { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem .85rem; }
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.file-size { color: var(--muted); font-size: .86rem; }
.remove-file { border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 1.2rem; }
.remove-file:hover { color: var(--danger); }
.options { margin-top: 1rem; padding: 1rem; background: var(--paper); border-radius: .7rem; }
.options label { display: block; font-weight: 750; margin-bottom: .45rem; }
.options input, .options select { width: 100%; border: 1px solid #aeb7c3; border-radius: .55rem; background: var(--white); padding: .75rem .8rem; color: var(--ink); }
.options p { color: var(--muted); font-size: .83rem; margin: .4rem 0 0; }
.hidden { display: none !important; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.1rem; }
.status { margin: 0; color: var(--muted); font-size: .9rem; }
.status.error { color: var(--danger); font-weight: 650; }
.primary-button, .secondary-button { border: 0; border-radius: .55rem; padding: .8rem 1.15rem; font-weight: 800; cursor: pointer; }
.primary-button { background: var(--lime); color: var(--lime-dark); box-shadow: 0 5px 0 #7ca500; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.primary-button.busy { cursor: wait; }
.secondary-button { background: var(--white); color: var(--ink); border: 1px solid #526073; }

.confidence { border-block: 1px solid var(--line); background: var(--white); display: grid; grid-template-columns: repeat(3, 1fr); }
.confidence article { padding: 3.2rem max(2rem, 5vw); border-right: 1px solid var(--line); }
.confidence article:last-child { border-right: 0; }
.fact-number { display: block; color: #668a00; font-weight: 850; font-size: .8rem; letter-spacing: .14em; margin-bottom: 2.8rem; }
.confidence h2 { font-size: 1.25rem; margin: 0 0 .6rem; letter-spacing: -.025em; }
.confidence p { color: var(--muted); margin: 0; }

.pro-section { background: var(--ink); color: var(--white); padding: 5.5rem max(2rem, calc((100vw - 1056px) / 2)); display: grid; grid-template-columns: 1.35fr .65fr; gap: 5rem; align-items: center; }
.pro-section h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.7rem); line-height: 1.03; letter-spacing: -.055em; }
.pro-section > div > p:not(.eyebrow) { color: #aeb7c3; max-width: 650px; }
.lime { color: var(--lime); }
.price-card { background: #141e2f; border: 1px solid #2c394d; border-radius: 1rem; padding: 1.5rem; }
.price { margin: 0 !important; color: #dce1e8 !important; }
.price span { color: var(--white); font-size: 3rem; font-weight: 850; letter-spacing: -.05em; }
.price small { color: #aeb7c3; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.price-card ul { list-style: none; padding: 0; margin: 1.35rem 0; color: #dce1e8; }
.price-card li { padding: .45rem 0; }
.price-card li::before { content: "✓"; color: var(--lime); font-weight: 900; margin-right: .6rem; }
.price-card .secondary-button { width: 100%; }
.microcopy { font-size: .77rem !important; text-align: center; margin: .65rem 0 0 !important; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem 5vw; background: #070c14; color: #8f9bad; font-size: .82rem; }
footer p { margin: 0; }
footer a { color: #dce1e8; }

.legal-page { max-width: 860px; min-height: calc(100vh - 230px); margin: 0 auto; padding: 4.5rem 1.5rem 6rem; }
.legal-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2.3rem 0 .7rem; }
.legal-page p { color: #354052; margin: 0 0 1rem; }
.legal-page a { color: #405e00; }
.legal-note { padding: 1rem 1.2rem; border-left: 4px solid #8bb900; background: var(--white); border-radius: .25rem; }

dialog { width: min(520px, calc(100% - 2rem)); border: 0; border-radius: 1rem; padding: 2rem; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7, 12, 20, .72); backdrop-filter: blur(6px); }
dialog h2 { font-size: 2rem; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 .8rem; }
dialog .primary-button { margin-top: .8rem; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; border: 0; background: transparent; font-size: 1.5rem; cursor: pointer; }

*:focus-visible { outline: 3px solid #7da900; outline-offset: 3px; }

@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 1rem; }
  nav { display: none; }
  .workspace { padding: 3.5rem 1rem 3rem; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .tool-panel { padding: .8rem; }
  .drop-zone { min-height: 220px; }
  .action-row { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .confidence { grid-template-columns: 1fr; }
  .confidence article { border-right: 0; border-bottom: 1px solid var(--line); padding: 2.3rem 1.4rem; }
  .fact-number { margin-bottom: 1.2rem; }
  .pro-section { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.25rem; }
  footer { flex-direction: column; }
}
