:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #101719;
  --ink-2: #172124;
  --ink-3: #233034;
  --paper: #f2f5ee;
  --muted: #a9b4ae;
  --line: rgba(242, 245, 238, .13);
  --acid: #d9ff57;
  --acid-dark: #b9dc38;
  --orange: #ff8a5b;
  --danger: #ff726f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); min-width: 320px; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1440px; margin: auto; padding: 20px 4vw;
  background: rgba(16, 23, 25, .88); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.redact-it-wordmark {
  display: inline-flex; align-items: stretch; position: relative; isolation: isolate;
  white-space: nowrap; font: 800 12px/1 'DM Mono', ui-monospace, monospace;
  letter-spacing: .15em; text-transform: uppercase; transform: rotate(-.45deg);
  filter: drop-shadow(4px 4px 0 rgba(217,255,87,.22));
}
.redact-it-wordmark__redact,
.redact-it-wordmark__it { display: inline-flex; align-items: center; min-height: 30px; }
.redact-it-wordmark__redact {
  padding: 0 9px 0 10px; color: #fff; background: #030506;
  border: 1px solid rgba(242,245,238,.32); border-right: 0;
  box-shadow: inset 0 -2px 0 #151b1d;
}
.redact-it-wordmark__it {
  margin-left: -1px; padding: 0 7px 0 8px; color: #080b0c; background: var(--acid);
  border: 1px solid var(--acid); letter-spacing: .08em;
  clip-path: polygon(0 2px, 100% 0, calc(100% - 2px) 100%, 0 calc(100% - 1px));
}
.brand:hover .redact-it-wordmark { transform: rotate(0); filter: drop-shadow(4px 4px 0 rgba(217,255,87,.36)); }
nav { display: flex; align-items: center; gap: 26px; }
nav > a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav > a:hover { color: var(--paper); }

.button {
  border: 1px solid var(--line); border-radius: 10px; color: var(--paper);
  background: transparent; min-height: 44px; padding: 0 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font-weight: 700; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(242,245,238,.35); }
.button:disabled { opacity: .38; cursor: not-allowed; }
.button-small { min-height: 36px; padding: 0 13px; font-size: 13px; }
.button-primary { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.button-primary:hover:not(:disabled) { background: #e3ff7a; border-color: #e3ff7a; }
.button-quiet { background: rgba(242,245,238,.035); }
.button-pro { border-color: rgba(217,255,87,.45); color: var(--acid); }

.hero {
  min-height: 680px; max-width: 1440px; margin: auto; padding: 92px 4vw 100px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 8vw; align-items: center;
  overflow: hidden;
}
.eyebrow { margin: 0 0 18px; font: 500 12px/1 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--acid); }
.hero h1 { font-size: clamp(58px, 7.7vw, 118px); line-height: .89; letter-spacing: -.075em; margin: 0; max-width: 850px; }
.hero h1 span { color: var(--muted); }
.hero-lede { max-width: 710px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: #c5cec9; margin: 34px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.trust-row span { color: var(--acid); font-size: 8px; margin-right: 5px; }

.hero-visual { position: relative; min-height: 450px; display: grid; place-items: center; }
.hero-visual::before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: var(--acid); filter: blur(110px); opacity: .12; }
.mock-window { position: relative; z-index: 2; width: min(620px, 100%); aspect-ratio: 1.25; background: #e8ece6; border-radius: 16px; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 50px 90px rgba(0,0,0,.48); transform: rotate(2.5deg); overflow: hidden; }
.mock-chrome { height: 44px; background: #253035; display: flex; align-items: center; padding: 0 14px; gap: 7px; color: #84918b; font: 10px 'DM Mono'; }
.mock-chrome i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #59645f; }
.mock-chrome span { margin-left: 10px; background: #11191b; border-radius: 6px; padding: 7px 12px; flex: 1; }
.mock-body { height: calc(100% - 44px); display: grid; grid-template-columns: 21% 1fr; }
.mock-side { background: #d4d9d3; border-right: 1px solid #c4cac4; }
.mock-content { position: relative; padding: 10% 10%; }
.mock-label { font: 10px 'DM Mono'; color: #64716c; letter-spacing: .1em; }
.mock-title, .mock-line { height: 13px; border-radius: 4px; background: #b4bdb7; margin: 15px 0; }
.mock-title { width: 52%; height: 25px; background: #55635e; }
.mock-line.short { width: 37%; }.mock-line.medium { width: 72%; }
.redaction-bar { height: 38px; background: #11191b; color: var(--acid); font: 8px 'DM Mono'; letter-spacing: .08em; display: flex; align-items: center; padding-left: 12px; margin: 20px -4px; box-shadow: 8px 8px 0 rgba(217,255,87,.26); }
.redaction-bar.one { width: 73%; }.redaction-bar.two { width: 54%; margin-left: 18%; }
.local-chip { position: absolute; z-index: 3; bottom: 4%; left: 3%; background: var(--orange); color: var(--ink); padding: 11px 16px; border-radius: 99px; font: 500 11px 'DM Mono'; transform: rotate(-5deg); box-shadow: 0 16px 30px rgba(0,0,0,.3); }

.hero-document { position: relative; margin: 0; min-width: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; overflow: hidden; background: #080c0d; box-shadow: 0 50px 100px rgba(0,0,0,.5); transform: rotate(1.2deg); }
.hero-document::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 58%, rgba(6,10,11,.88) 100%); }
.hero-document img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-document figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.hero-document figcaption span { color: var(--acid); font: 500 10px/1 'DM Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero-document figcaption strong { max-width: 310px; color: #fff; font-size: 16px; line-height: 1.25; text-align: right; }

.editor-shell { background: #dfe5dc; color: var(--ink); padding: 100px 4vw; }
.section-heading { max-width: 1320px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.section-heading .eyebrow { color: #4b6000; }
.section-heading h2, .privacy-section h2 { font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -.06em; margin: 0; }
.section-heading > p { color: #53605b; max-width: 460px; line-height: 1.55; }

.editor-card { max-width: 1320px; margin: auto; background: var(--ink); color: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 35px 100px rgba(21,35,31,.18); scroll-margin-top: 76px; }
.toolbar { min-height: 70px; display: flex; align-items: center; padding: 13px 16px; gap: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tool-group { display: flex; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.tool { border: 0; background: transparent; color: var(--muted); min-height: 36px; padding: 0 13px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.tool.active { background: var(--ink-3); color: var(--paper); }
.tool:disabled { opacity: .35; cursor: not-allowed; }
.toolbar-spacer { flex: 1; }
.button-scan { border-color: rgba(217,255,87,.4); color: var(--acid); white-space: nowrap; }
.pro-badge { font: 500 9px 'DM Mono'; letter-spacing: .08em; background: var(--acid); color: var(--ink); padding: 3px 5px; border-radius: 4px; }

.workspace { position: relative; min-height: 570px; display: grid; grid-template-columns: 1fr 220px; background: #0c1214; }
.workspace.empty { grid-template-columns: 1fr; }
.workspace.dragover .drop-zone { border-color: var(--acid); background: rgba(217,255,87,.04); }
.drop-zone { margin: 24px; border: 1px dashed rgba(242,245,238,.22); border-radius: 13px; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; transition: border-color .2s, background .2s; }
.drop-zone.dragover { border-color: var(--acid); background: rgba(217,255,87,.04); }
.drop-zone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-icon { font: 60px/1 'DM Mono'; color: var(--acid); transform: rotate(90deg); margin-bottom: 18px; }
.drop-zone h3 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.04em; }
.drop-zone p { color: var(--muted); margin: 0 0 24px; }
.drop-zone small { color: #89968f; margin-top: 18px; }
kbd { font: 11px 'DM Mono'; background: var(--ink-3); border: 1px solid #45524d; border-bottom-width: 2px; padding: 4px 6px; border-radius: 5px; }

.canvas-stage { position: relative; min-width: 0; padding: 24px; overflow: auto; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(45deg,#121a1c 25%,transparent 25%),linear-gradient(-45deg,#121a1c 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#121a1c 75%),linear-gradient(-45deg,transparent 75%,#121a1c 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
#redaction-canvas { max-width: 100%; max-height: 70vh; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.38); cursor: crosshair; touch-action: none; }
.drawing-hint { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); pointer-events: none; color: #dce4df; background: rgba(16,23,25,.86); border: 1px solid var(--line); backdrop-filter: blur(10px); border-radius: 99px; padding: 8px 13px; font-size: 11px; opacity: .85; white-space: nowrap; }
.redaction-safety { max-width: 1320px; margin: 18px auto 0; color: #45524d; font-size: 13px; line-height: 1.55; }
.redaction-safety strong { color: var(--ink); }
.queue-panel { border-left: 1px solid var(--line); background: #11191b; padding: 14px; overflow-y: auto; }
.queue-heading { display: flex; justify-content: space-between; color: var(--muted); font: 11px 'DM Mono'; padding: 4px 2px 12px; }
.queue-list { display: grid; gap: 10px; }
.queue-item { position: relative; width: 100%; padding: 10px; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--ink-2); color: var(--paper); cursor: pointer; min-height: 72px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; }
.queue-item.active { border-color: var(--acid); }
.queue-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue-item span { color: #fff; font: 10px 'DM Mono'; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.queue-item small { color: var(--muted); font: 9px 'DM Mono'; }
.queue-add { width: 100%; min-height: 38px; margin-top: 12px; font-size: 12px; }
.suggestion-list { display: grid; gap: 9px; margin-bottom: 14px; }
.suggestion { display: grid; gap: 7px; padding: 10px; border: 1px solid rgba(255,138,91,.35); border-radius: 9px; background: rgba(255,138,91,.06); }
.suggestion b { color: var(--orange); font-size: 10px; }
.suggestion code { overflow: hidden; text-overflow: ellipsis; color: #e5ebe7; font-size: 9px; white-space: nowrap; }
.suggestion div { display: flex; gap: 6px; }
.suggestion button { border: 1px solid var(--line); border-radius: 5px; background: var(--ink-3); color: var(--paper); padding: 5px 7px; font-size: 9px; cursor: pointer; }
.editor-footer { min-height: 76px; padding: 14px 16px 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); }
.status { color: var(--muted); font: 11px/1.5 'DM Mono'; }
.status.error { color: var(--danger); }.status.success { color: var(--acid); }
.export-actions { display: flex; gap: 10px; }
.button-batch { border-color: rgba(217,255,87,.45); color: var(--acid); }
.export-options { display: flex; gap: 8px; margin-left: auto; }
.export-options label { display: grid; gap: 3px; color: var(--muted); font: 9px 'DM Mono'; text-transform: uppercase; letter-spacing: .06em; }
.export-options select { border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); color: var(--paper); padding: 5px 7px; font: 11px 'DM Mono'; }

.custom-rules { max-width: 1320px; margin: 18px auto 0; border: 1px solid #bfc8bd; border-radius: 12px; overflow: hidden; }
.custom-rules summary { cursor: pointer; list-style: none; padding: 18px 20px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.custom-rules summary::-webkit-details-marker { display: none; }
.rules-body { border-top: 1px solid #c8cfc6; padding: 20px; display: grid; gap: 10px; }
.rules-body label { font-size: 13px; font-weight: 700; }
.rules-body textarea { width: 100%; resize: vertical; border: 1px solid #b3bdb2; background: #f7f8f5; color: var(--ink); border-radius: 8px; padding: 12px; font: 12px/1.6 'DM Mono'; }
.rules-body p { margin: 0; color: #5c6862; font-size: 12px; }

.preset-panel { max-width: 1320px; margin: 18px auto 0; border: 1px solid #bfc8bd; border-radius: 12px; padding: 20px; background: rgba(255,255,255,.42); }
.preset-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.preset-heading h3 { margin: 0 0 6px; font-size: 18px; }
.preset-heading p { margin: 0; color: #5c6862; font-size: 13px; line-height: 1.5; }
.preset-unlock { margin-top: 18px; border-color: #aeb7ad; color: var(--ink); }
.preset-save-row { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; }
.preset-save-row > label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; }
.preset-save-row > div { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 9px; }
.preset-save-row input { min-width: 0; border: 1px solid #aeb7ad; border-radius: 8px; background: #f7f8f5; color: var(--ink); padding: 0 12px; font: 12px 'DM Mono'; }
.preset-save-row small { align-self: center; color: #65706a; font: 10px 'DM Mono'; }
.preset-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid #c8cfc6; }
.preset-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid #c8cfc6; }
.preset-list li > div:first-child { min-width: 0; display: grid; gap: 4px; }
.preset-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.preset-list small { color: #65706a; font: 10px/1.5 'DM Mono'; text-transform: capitalize; }
.preset-list li > div:last-child { display: flex; gap: 7px; }
.preset-list button { min-height: 34px; border: 1px solid #aeb7ad; border-radius: 7px; background: #fff; color: var(--ink); padding: 0 11px; cursor: pointer; font-weight: 700; }
.preset-list .preset-delete { color: #8f2f29; }
.preset-empty { margin: 18px 0 0; border-top: 1px solid #c8cfc6; padding-top: 16px; color: #65706a; font-size: 12px; }
.preset-local-note { margin: 14px 0 0; color: #4d5953; font: 11px/1.5 'DM Mono'; }

/* A paid entitlement turns the landing page into the application shell. */
body.slateveil-pro-app { background: #0c1214; }
body.slateveil-pro-app .site-header { max-width: none; padding-top: 14px; padding-bottom: 14px; background: rgba(12,18,20,.96); }
body.slateveil-pro-app .site-header nav > a { display: none; }
body.slateveil-pro-app main > :not(.editor-shell),
body.slateveil-pro-app footer { display: none; }
body.slateveil-pro-app .editor-shell { min-height: calc(100vh - 65px); padding: 0; background: #0c1214; color: var(--paper); }
body.slateveil-pro-app .section-heading { display: none; }
body.slateveil-pro-app .editor-card { max-width: none; margin: 0; border-radius: 0; box-shadow: none; scroll-margin-top: 65px; }
body.slateveil-pro-app .workspace { min-height: calc(100vh - 211px); }
body.slateveil-pro-app .redaction-safety,
body.slateveil-pro-app .custom-rules,
body.slateveil-pro-app .preset-panel { max-width: none; margin-left: 20px; margin-right: 20px; }
body.slateveil-pro-app .redaction-safety { color: var(--muted); }
body.slateveil-pro-app .redaction-safety strong { color: var(--paper); }
body.slateveil-pro-app .custom-rules,
body.slateveil-pro-app .preset-panel { border-color: var(--line); background: var(--ink-2); color: var(--paper); }
body.slateveil-pro-app .custom-rules summary,
body.slateveil-pro-app .preset-heading p,
body.slateveil-pro-app .preset-save-row small,
body.slateveil-pro-app .preset-list small,
body.slateveil-pro-app .preset-empty,
body.slateveil-pro-app .preset-local-note { color: var(--muted); }
body.slateveil-pro-app .rules-body { border-color: var(--line); }
body.slateveil-pro-app .preset-save-row input,
body.slateveil-pro-app .rules-body textarea { background: #0c1214; color: var(--paper); border-color: #45524d; }
body.slateveil-pro-app .preset-list,
body.slateveil-pro-app .preset-list li { border-color: var(--line); }
body.slateveil-pro-app .preset-list button { background: var(--ink-3); color: var(--paper); border-color: var(--line); }

.how-it-works { max-width: 1440px; margin: auto; padding: 100px 4vw; display: grid; grid-template-columns: repeat(3,1fr); }
.how-it-works article { padding: 8px 7vw 20px 0; border-top: 1px solid var(--line); }
.how-it-works article + article { border-left: 1px solid var(--line); padding-left: 4vw; }
.how-it-works span { color: var(--acid); font: 11px 'DM Mono'; }
.how-it-works h3 { font-size: 22px; margin: 22px 0 10px; }
.how-it-works p { color: var(--muted); line-height: 1.65; margin: 0; }

.use-cases { max-width: 1440px; margin: auto; padding: 20px 4vw 110px; }
.use-case-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use-case-grid article { min-height: 260px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.use-case-grid b { color: var(--acid); font: 11px 'DM Mono'; }
.use-case-grid h3 { margin: 70px 0 12px; font-size: 24px; letter-spacing: -.035em; }
.use-case-grid p { color: var(--muted); line-height: 1.65; margin: 0; }

.privacy-section { background: var(--acid); color: var(--ink); padding: 110px 4vw; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.privacy-section .eyebrow { color: #536800; }
.privacy-grid { display: grid; gap: 0; }
.privacy-grid article { padding: 26px 0; border-top: 1px solid rgba(16,23,25,.25); }
.privacy-grid h3 { margin: 0 0 8px; font-size: 20px; }
.privacy-grid p { margin: 0; line-height: 1.6; color: #394318; }

.pricing { max-width: 1440px; margin: auto; padding: 110px 4vw; display: grid; grid-template-columns: 1fr minmax(340px,520px); gap: 8vw; align-items: start; }
.pricing h2 { font-size: clamp(42px,5.7vw,80px); line-height: .98; letter-spacing: -.06em; margin: 0; }
.price-card { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 36px; box-shadow: 18px 18px 0 var(--acid); }
.price-card > p:first-child { font: 500 12px 'DM Mono'; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.price-card strong { display: block; font-size: 86px; line-height: 1; letter-spacing: -.08em; margin: 18px 0 4px; }
.price-card strong span { font-size: 34px; vertical-align: top; margin-right: 5px; }
.price-card > small { color: #5b6762; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid #cbd1c9; }
.price-card li { padding: 13px 0; border-bottom: 1px solid #cbd1c9; }
.price-card li::before { content: '✓'; color: #668000; margin-right: 9px; font-weight: 800; }
.price-card .button { width: 100%; }
.price-fine { color: #63706a; font-size: 11px; line-height: 1.5; text-align: center; }

.faq { max-width: 1000px; margin: auto; padding: 40px 4vw 120px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 24px 0; font-size: 19px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--muted); line-height: 1.7; max-width: 800px; }

footer { max-width: 1440px; margin: auto; padding: 60px 4vw; display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: center; color: var(--muted); }
.footer-brand { color: var(--paper); }
footer p { margin: 0; }.fine-print { grid-column: 1 / -1; font-size: 11px; }
footer nav { font-size: 12px; }
footer nav a { color: var(--muted); }

dialog { width: min(620px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; background: transparent; border: 0; color: var(--paper); overflow: auto; }
dialog::backdrop { background: rgba(4,8,9,.78); backdrop-filter: blur(10px); }
.license-card { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 38px; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.license-card h2 { font-size: 40px; line-height: 1; letter-spacing: -.05em; margin: 0 0 16px; }
.license-card > p:not(.eyebrow,.license-message) { color: var(--muted); line-height: 1.6; }
.license-card ul { padding-left: 20px; line-height: 1.8; color: #ced6d1; }
.license-card label { display: block; font-size: 12px; margin: 22px 0 8px; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); font-size: 22px; cursor: pointer; }
.license-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.license-row input { min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: var(--paper); padding: 0 13px; font: 12px 'DM Mono'; }
.license-message { min-height: 18px; color: var(--danger); font: 11px 'DM Mono'; }
.license-message.success { color: var(--acid); }
.recovery-save { margin: 22px 0; padding: 18px; border: 1px solid var(--acid); border-radius: 12px; background: rgba(192,255,0,.07); }
.recovery-save h3 { margin: 0 0 8px; font-size: 18px; }
.recovery-save p { margin: 0 0 12px; color: #ced6d1; font-size: 12px; line-height: 1.5; }
.recovery-save code { display: block; padding: 12px; border-radius: 8px; background: #091012; color: var(--acid); font: 11px/1.5 'DM Mono'; overflow-wrap: anywhere; user-select: all; }
.recovery-save > div, .device-manager-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.device-manager { margin: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device-manager summary { padding: 14px 0; cursor: pointer; font-weight: 800; }
.device-manager > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.device-manager ul { list-style: none; margin: 14px 0; padding: 0; }
.device-manager li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.device-manager li span { display: grid; gap: 2px; }
.device-manager li small { color: var(--muted); font: 10px 'DM Mono'; }
.button-pro-buy { width: 100%; margin-top: 12px; background: var(--acid); color: var(--ink); border-color: var(--acid); }
.demo-activate { width: 100%; margin-top: 10px; font-size: 12px; }

.legal-page { min-height: 100vh; max-width: 1080px; margin: auto; padding: 42px 5vw 70px; }
.legal-page > .brand { margin-bottom: 90px; }
.legal-page article { max-width: 780px; }
.legal-page h1 { font-size: clamp(46px,8vw,90px); line-height: .95; letter-spacing: -.065em; margin: 0 0 16px; }
.legal-page h2 { font-size: 22px; margin: 42px 0 10px; }
.legal-page p, .legal-page li { color: #b8c2bd; line-height: 1.75; }
.legal-page .legal-updated { color: #77847e; font: 11px 'DM Mono'; margin-bottom: 55px; }
.legal-page footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 28px 0 0; display: flex; justify-content: space-between; color: var(--muted); }
.legal-page footer a { color: var(--acid); }

@media (max-width: 900px) {
  nav > a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-document { transform: none; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .workspace { grid-template-columns: 1fr; }
  .queue-panel { border: 0; border-top: 1px solid var(--line); }
  .queue-list { grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); }
  .how-it-works { grid-template-columns: 1fr; }
  .how-it-works article + article { border-left: 0; padding-left: 0; }
  .privacy-section { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { padding: 14px 16px; }
  .hero, .editor-shell, .how-it-works, .privacy-section { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero h1 { font-size: clamp(50px, 17vw, 76px); }
  .hero-document figcaption { left: 14px; right: 14px; bottom: 13px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .hero-document figcaption strong { max-width: none; font-size: 13px; text-align: left; }
  .editor-card { display: flex; flex-direction: column; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .tool-group { width: 100%; flex-wrap: wrap; }
  .tool { flex: 1 1 auto; padding-inline: 10px; }
  .toolbar-spacer { display: none; }
  .button-scan { flex: 1; }
  .workspace { min-height: 460px; }
  .drop-zone { min-height: 410px; margin: 12px; padding: 24px; }
  .canvas-stage { padding: 12px; min-height: 390px; }
  .drawing-hint { bottom: 14px; width: calc(100% - 32px); max-width: 360px; white-space: normal; text-align: center; line-height: 1.35; }
  .editor-footer { order: 1; flex-direction: column; align-items: stretch; }
  .workspace { order: 2; }
  .export-options { margin: 0; justify-content: center; }
  .export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .export-actions .button-batch { grid-column: 1 / -1; }
  .status { text-align: center; }
  .preset-save-row { grid-template-columns: 1fr; }
  .preset-save-row > div { grid-template-columns: 1fr; }
  .preset-list li { grid-template-columns: 1fr; }
  .preset-list li > div:last-child { justify-content: stretch; }
  .preset-list button { flex: 1; }
  .license-card { padding: 30px 20px 22px; }
  .license-row { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-wrap: wrap; gap: 14px; }
  .use-case-grid { grid-template-columns: 1fr; }
  .legal-page > .brand { margin-bottom: 60px; }
  .legal-page footer { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
