:root {
  --bg: #f4f7f5;
  --paper: #fff;
  --ink: #183d35;
  --muted: #52675e;
  --line: #d9e3dc;
  --accent: #d6ec9c;
  --error: #8d342d;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; font-size: 1rem; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible,
summary:focus-visible, .table-scroll:focus-visible, h2:focus-visible {
  outline: 3px solid #789c34;
  outline-offset: 4px;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.page-shell { max-width: 1232px; margin: auto; padding: 0 40px; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 96px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { font-weight: 800; font-size: 1.75rem; letter-spacing: -1.5px; text-decoration: none; }
.brand-dot { color: #708e39; }
.tech { font-weight: 400; font-size: 1.4rem; letter-spacing: -.8px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: .875rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.intro { padding: 44px 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; margin: 0 0 12px; color: var(--muted); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -3px; font-weight: 500; line-height: 1.15; margin: 16px 0; }
h1 > span:first-child { font-weight: 750; }
h1 .tool-name { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.6px; margin-top: 14px; line-height: 1.3; }
.description { max-width: 760px; color: var(--muted); font-size: 1.0625rem; line-height: 1.75; margin: 18px 0 22px; }
.format-list { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .875rem; }
.format-list span { display: inline-flex; align-items: center; gap: 8px; }
.format-list .icon { color: #56764b; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 28px; align-items: start; }
.tool-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.heading-icon { width: 1.6rem; height: 1.6rem; color: #4b7359; }
h2 { font-size: 1.375rem; line-height: 1.35; letter-spacing: -.45px; margin: 0; }
h3 { font-size: 1rem; line-height: 1.45; margin: 0; }
label { font-size: .875rem; font-weight: 600; display: block; margin-bottom: 8px; }
input[type=url], input[type=text] { width: 100%; min-width: 0; border: 1px solid #b7c8be; background: white; border-radius: 7px; padding: 13px; color: var(--ink); font-size: 1rem; line-height: 1.5; }
input::placeholder { color: #60756a; opacity: 1; }
.url-row { display: flex; gap: 10px; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 7px; background: var(--ink); color: white; padding: 14px 18px; font-weight: 600; font-size: .875rem; cursor: pointer; white-space: nowrap; transition: background .15s; min-height: 48px; }
button:hover { background: #2b584b; }
button:disabled { opacity: .5; cursor: wait; }
.field-help { font-size: .875rem; line-height: 1.65; color: var(--muted); margin: 10px 0 0; }
.notes { border: 1px solid var(--line); background: #eaf1eb; border-radius: 14px; padding: 24px; }
.note-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); border-radius: 12px; margin-bottom: 16px; }
.note-icon .icon { width: 25px; height: 25px; }
.notes h2 { font-size: 1.125rem; }
.notes p { font-size: .9375rem; line-height: 1.75; margin: 12px 0 20px; color: #3f5c4d; }
.notes .limits { font-size: .875rem; margin: 18px 0 0; border-top: 1px solid #cbd9cf; padding-top: 16px; }
.selection { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.section-heading, .selection-controls, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subtle { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.selection-controls { margin: 20px 0 12px; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .875rem; margin: 0; }
input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; flex-shrink: 0; }
.sitemap-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
.sitemap-list:empty { display: none; }
.sitemap-option { padding: 13px 12px; border-bottom: 1px solid var(--line); line-height: 1.65; overflow-wrap: anywhere; }
.sitemap-option:last-child { border-bottom: 0; }
.single-summary { font-size: .875rem; line-height: 1.7; padding: 14px; background: #edf3e7; border-radius: 7px; overflow-wrap: anywhere; }
#extract-form { margin-top: 24px; }
.optional { color: var(--muted); font-weight: 400; }
.extract-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.status, .error { padding: 14px 16px; font-size: .875rem; line-height: 1.7; border-radius: 7px; margin-top: 20px; }
.status { background: #edf3e7; }
.status.busy:before { content: ''; display: inline-block; width: 13px; height: 13px; border: 2px solid #bcc9a8; border-top-color: var(--ink); border-radius: 50%; margin-right: 10px; vertical-align: middle; animation: spin .8s linear infinite; }
.error { background: #fff0eb; color: var(--error); border: 1px solid #efc7b9; }
.results { margin-top: 28px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.results-heading .eyebrow { margin-bottom: 6px; }
.results h2 { font-size: 1.75rem; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin: 24px 0; }
.stats > div { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-size: 2rem; font-weight: 500; line-height: 1.2; letter-spacing: -.5px; }
.stats span { font-size: .875rem; color: var(--muted); }
.preview-heading { margin-bottom: 12px; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; table-layout: fixed; min-width: 660px; }
th { font-size: .8125rem; font-weight: 600; color: #3d5748; padding: 13px 12px; background: #eef3ef; }
th:first-child { width: 48%; }
th:nth-child(2) { width: 38%; }
td { padding: 15px 12px; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.6; }
td:last-child { font-size: .8125rem; }
.result-footnote { font-size: .875rem; color: var(--muted); margin: 18px 0 8px; }
.text-button { background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.text-button:hover { background: none; color: #426d3f; }
.warnings { background: #fff5db; padding: 16px; border: 1px solid #e6d5a9; border-radius: 7px; font-size: .875rem; line-height: 1.7; margin-bottom: 22px; overflow-wrap: anywhere; }
.warnings summary { cursor: pointer; font-weight: 600; }
.warnings p { margin: 12px 0; }
.empty-results { padding: 16px 0; font-size: 1rem; }
.guide { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.guide-heading .eyebrow { margin-bottom: 8px; }
.guide-heading h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
.guide-icon { width: 38px; height: 38px; color: #6a8574; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; counter-reset: steps; }
.steps li { counter-increment: steps; display: flex; align-items: flex-start; gap: 16px; }
.steps li:before { content: counter(steps); flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #c2d4c7; background: #e7eee8; border-radius: 50%; font-size: .9375rem; font-weight: 600; }
.steps h3 { margin: 4px 0 8px; }
.steps p, .reference p { font-size: 1rem; color: var(--muted); line-height: 1.8; margin: 0; }
code { font-size: .875em; background: #e7ede8; border-radius: 4px; padding: 2px 4px; overflow-wrap: anywhere; }
.reference { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; }
.use-cases { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.use-cases h2 { margin: 12px 0 16px; }
.use-cases p + p { margin-top: 14px; }
.faq { padding: 6px 0; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-size: 1rem; font-weight: 600; cursor: pointer; }
.faq details p { padding-bottom: 18px; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); margin-top: 48px; font-size: .875rem; color: var(--muted); }
footer > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .page-shell { padding: 0 28px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
  .url-row { flex-direction: column; }
  .url-row button { align-self: flex-start; }
  .extract-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 760px) {
  .page-shell { padding: 0 20px; }
  .site-header { min-height: 80px; gap: 12px; }
  .wordmark { font-size: 1.5rem; }
  .tech { font-size: 1.2rem; }
  .site-header nav { gap: 16px; }
  .back-link { display: none; }
  .intro { padding: 32px 0 28px; }
  h1 { font-size: 2.75rem; letter-spacing: -2px; }
  h1 .tool-name { font-size: 1.45rem; }
  .description { font-size: 1rem; }
  .format-list { gap: 10px 16px; }
  .workspace, .reference { grid-template-columns: 1fr; gap: 22px; }
  .tool-card { padding: 22px 18px; }
  .card-heading { gap: 10px; }
  h2 { font-size: 1.25rem; }
  .notes { padding: 22px; }
  .notes p { max-width: 600px; }
  .url-row button, .extract-actions button { width: 100%; }
  .extract-actions { align-items: stretch; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .results h2 { font-size: 1.5rem; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stats strong { font-size: 1.75rem; }
  .preview-heading, .section-heading { flex-wrap: wrap; }
  .guide { margin-top: 36px; padding-top: 28px; }
  .guide-icon { display: none; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { gap: 12px; }
  .reference { margin-top: 30px; }
  .use-cases { padding: 22px; }
  footer { margin-top: 32px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before { animation: none !important; transition: none !important; }
}
