:root {
  color-scheme: light dark;
  --page: #f6f7f2;
  --surface: #ffffff;
  --soft: #edf1e9;
  --ink: #1d3027;
  --muted: #546259;
  --accent: #286044;
  --on-accent: #ffffff;
  --border: #d6ded4;
  --feature: #e5edde;
  --shadow: 0 16px 48px rgb(29 48 39 / 6%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 2rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(2.8rem, 5.5vw, 4.9rem); letter-spacing: -0.055em; font-weight: 750; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); letter-spacing: -0.04em; margin-bottom: 1rem; }
h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
p { margin-bottom: 1rem; }
code, kbd { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
code { padding: 0.1em 0.3em; background: var(--soft); border-radius: 4px; }
kbd { display: inline-block; padding: 0.05em 0.35em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); }
.wrap { width: min(1180px, calc(100% - 4rem)); margin-inline: auto; }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.skip-link { position: absolute; top: 1rem; left: 1rem; z-index: 2; transform: translateY(-200%); padding: 0.7rem 1rem; background: var(--surface); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 100px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; min-width: 44px; padding-block: 0.25rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.1rem; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 1.15rem; letter-spacing: -0.1em; padding-right: 0.12em; }
nav { display: flex; flex-wrap: wrap; gap: 0.65rem 1.6rem; align-items: center; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--muted); font-size: 0.85rem; font-weight: 600; padding-block: 0.5rem; padding-inline: 0.25rem; }
nav a[aria-current="page"] { color: var(--accent); text-decoration-thickness: 2px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: 5.5rem 4rem; }
.hero-copy { padding-block: 1rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }
.hero-description { font-size: 1.12rem; max-width: 39ch; color: var(--muted); margin-bottom: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 48px; padding: 0.8rem 1.2rem; border: 1px solid transparent; border-radius: 10px; font-weight: 650; font-size: 0.9rem; text-decoration: none; transition: transform 150ms ease, box-shadow 150ms ease; }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-secondary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); }
.download { margin-bottom: 0.8rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding-block: 0.5rem; font-size: 0.9rem; font-weight: 650; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 20px; }
.demo { padding: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.demo-heading { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.demo-heading .eyebrow { margin-bottom: 0.55rem; }
.demo h2 { font-size: 1.3rem; letter-spacing: -0.025em; }
.demo-badge { flex-shrink: 0; font-size: 0.68rem; padding: 0.2rem 0.55rem; border-radius: 20px; background: var(--soft); color: var(--accent); font-weight: 700; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.65rem; padding-block: 0.4rem 1rem; }
.mode-toggle { padding: 0.5rem 0.75rem; min-height: 44px; border: 1px solid var(--accent); border-radius: 8px; background: transparent; color: var(--accent); font-size: 0.8rem; font-weight: 650; }
.mode-toggle[aria-pressed="false"] { border-color: var(--border); background: transparent; color: var(--muted); }
.button-quiet { min-height: 44px; min-width: 44px; padding: 0.5rem; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; font-size: 0.8rem; }
.sample-picker { padding: 0; margin: 0; border: 0; min-width: 0; }
.sample-picker legend { padding: 0; margin-bottom: 0.6rem; font-size: 0.8rem; font-weight: 700; }
.sample { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 44px; padding: 0.55rem 0.8rem; margin-bottom: 0.55rem; border: 1px solid var(--border); background: transparent; color: var(--ink); border-radius: 8px; text-align: left; font-size: 0.85rem; }
.sample:hover:not(:disabled) { background: var(--soft); border-color: var(--accent); }
.copy-label { color: var(--accent); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.demo-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-block: 0.65rem 1rem; }
.queue-panel, .paste-panel { background: var(--soft); border-radius: 10px; padding: 0.8rem; min-width: 0; }
.demo-flow h3 { font-size: 0.75rem; line-height: 1.4; margin-bottom: 0.5rem; }
.empty-state { color: var(--muted); font-size: 0.8rem; margin-bottom: 0; }
.item-list { font-size: 0.8rem; padding-left: 1.4rem; margin: 0; max-height: 9rem; overflow-y: auto; overflow-wrap: anywhere; }
.item-list li { padding: 0.2rem 0.2rem 0.2rem 0; }
.item-list li::marker { color: var(--accent); font-weight: 700; }
.paste-button { width: 100%; }
.demo-status { color: var(--muted); margin: 0.7rem 0 0; min-height: 2.8em; }
.notice { background: var(--soft); padding: 0.75rem; border-left: 3px solid var(--accent); }
.section { padding-block: 3.25rem; }
.section-heading { max-width: 44rem; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: 0.75rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.step { padding: 1.4rem; }
.step-number { display: block; color: var(--accent); font-size: 0.8rem; font-weight: 700; margin-bottom: 1.75rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0; }
.purpose { font-size: 0.85rem; color: var(--muted); max-width: 88ch; margin: 1.5rem 0 0; }
.privacy-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; background: var(--feature); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; border: 1px solid var(--border); }
.privacy-feature p { max-width: 55ch; }
.privacy-list { padding: 0; list-style: none; margin: 0 0 1.5rem; }
.privacy-list li { padding-block: 0.35rem; font-weight: 650; }
.privacy-list li::before { content: "✓"; color: var(--accent); margin-right: 0.8rem; }
.details-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; padding-bottom: 5rem; }
.details-section h2 { max-width: 12ch; }
.details-stack { display: flex; flex-direction: column; gap: 0.65rem; }
details { border-bottom: 1px solid var(--border); }
.demo-drawer { border: 1px solid var(--border); border-radius: 12px; padding-inline: 0.9rem; margin-top: 0.35rem; background: transparent; }
.demo-drawer .details-content { color: var(--ink); padding-bottom: 0.9rem; }
details:not([open]) .details-content { display: none; }
summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; padding-block: 0.75rem; font-weight: 650; }
.details-content { color: var(--muted); font-size: 0.9rem; padding-bottom: 0.75rem; }
.details-content a, .policy section a, .site-footer > a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 0.45rem; }
.details-content ol { padding-left: 1.4rem; }
.details-content li { padding-left: 0.3rem; margin-bottom: 0.6rem; }
.site-footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2rem; }
.site-footer p { margin: 0; }
.policy { max-width: 780px; padding-block: 4rem 5rem; }
.policy-header { margin-bottom: 2.5rem; }
.policy h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.policy-meta { padding: 1.3rem 1.5rem; background: var(--soft); border: 1px solid var(--border); border-radius: 12px; font-size: 0.9rem; line-height: 1.9; margin-bottom: 3rem; }
.policy article h2 { margin-top: 2.5rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.policy article p { line-height: 1.85; overflow-wrap: anywhere; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #141c19;
    --surface: #1d2822;
    --soft: #26352c;
    --ink: #edf2e9;
    --muted: #b1c0b4;
    --accent: #a4d7ab;
    --on-accent: #152b1e;
    --border: #3b4d40;
    --feature: #22362a;
    --shadow: 0 16px 48px rgb(0 0 0 / 16%);
  }
}

@media (max-width: 1000px) {
  .hero { gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .privacy-feature { gap: 2rem; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 580px); }
  .site-header { padding-block: 1rem; min-height: 80px; flex-wrap: wrap; gap: 0.65rem 1rem; }
  nav { gap: 0.65rem 1rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.75rem 1.5rem; }
  .hero-description { max-width: 45ch; }
  .section { padding-block: 2.25rem; }
  .privacy-feature, .details-section { grid-template-columns: 1fr; gap: 1.75rem; }
  .details-section h2 { max-width: none; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .policy { padding-block: 2.5rem 3rem; }
}

@media (max-width: 400px) {
  .steps, .demo-flow { grid-template-columns: 1fr; }
  .demo { padding: 1rem; }
  .button { padding-inline: 0.8rem; gap: 0.5rem; }
  .step-number { margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .button, .brand-mark, .privacy-feature, .queue-panel, .paste-panel { border: 1px solid ButtonText; }
}

@media print {
  :root { color-scheme: light; --page: #fff; --surface: #fff; --soft: #fff; --ink: #000; --muted: #333; --accent: #000; --border: #aaa; }
  .site-header, .site-footer, .skip-link, .policy-header .text-link { display: none; }
  .policy { max-width: none; width: 100%; padding: 0; }
  .policy article h2 { break-after: avoid; }
  .policy article p { orphans: 3; widows: 3; }
}
