:root {
  color-scheme: light;
  --ink: #0b1733;
  --muted: #53627a;
  --line: #dfe5ee;
  --paper: #ffffff;
  --wash: #f5f7fb;
  --blue: #2457f5;
  --blue-dark: #1739a8;
  --teal: #137f86;
  --green: #087a55;
  --amber: #99600a;
  --red: #ad2d3d;
  --navy: #0b1733;
  --green-soft: #eaf8f2;
  --blue-soft: #eef3ff;
  --shadow: 0 18px 50px rgba(18, 37, 74, 0.1);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  display: none;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-symbol { flex: 0 0 auto; width: 36px; height: 36px; }
.brand-lockup { display: grid; line-height: 1.05; }
.brand-lockup strong { font-size: 1.02rem; letter-spacing: -0.035em; }
.brand-lockup strong span { color: var(--blue); }
.brand-lockup small { margin-top: 5px; color: var(--muted); font-size: 0.67rem; font-weight: 650; letter-spacing: 0.02em; }

.nav-wrap,
.site-nav,
.header-actions { display: flex; align-items: center; }
.nav-wrap { gap: 24px; }
.site-nav { gap: 22px; }
.site-nav a { color: #40506d; font-size: 0.92rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }

.nav-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px;
  font-size: 22px;
}

.button {
  appearance: none;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 10px 24px rgba(36, 87, 245, 0.2); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue-dark); background: #edf3ff; border-color: #ccdcfb; }
.button-quiet { color: var(--ink); background: white; border-color: var(--line); }
.button-full { width: 100%; }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(36, 87, 245, 0.22); outline-offset: 3px; }

.hero {
  padding: 92px 0 82px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid #edf0f5;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr); align-items: center; gap: 78px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; line-height: 1.13; letter-spacing: -0.035em; }
h1 { max-width: 820px; font-size: clamp(3rem, 5.5vw, 5.05rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); }
h3 { font-size: 1.22rem; }
.hero-subtitle { max-width: 720px; margin: 26px 0 30px; color: #40506b; font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.58; }
.privacy-line { margin: 0 0 28px; color: var(--green); font-weight: 720; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; color: #42516a; font-size: 0.9rem; font-weight: 650; }
.trust-line > span { color: var(--green); }
.trust-line i { color: #a1adbd; font-style: normal; }

.hero-visual {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: #eaf0ff;
  border-radius: 44% 56% 60% 40% / 46% 40% 60% 54%;
}
.document-card {
  position: relative;
  width: min(380px, 92%);
  padding: 30px;
  background: white;
  border: 1px solid #d7e0ef;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.document-card::after {
  content: "Local only";
  position: absolute;
  right: -14px;
  top: -16px;
  padding: 8px 13px;
  color: #07583e;
  background: #e2f6ed;
  border: 1px solid #b9e2d1;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doc-top { display: flex; align-items: center; gap: 15px; margin-bottom: 26px; }
.doc-icon { width: 46px; height: 54px; display: grid; place-items: center; color: white; font-weight: 850; background: var(--blue); border-radius: 9px 15px 9px 9px; }
.doc-lines { flex: 1; }
.doc-lines i { display: block; width: 100%; height: 7px; margin: 9px 0; background: #e4eaf3; border-radius: 99px; }
.doc-lines i:nth-child(2) { width: 145px; }
.doc-top b { color: var(--muted); font-size: 0.72rem; white-space: nowrap; }
.visual-caption { margin: 0 0 10px; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.finding { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 12px 14px; color: #28405f; background: #f5f7fb; border: 1px solid #edf0f5; border-radius: 12px; font-weight: 650; }
.finding span { width: 24px; height: 24px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: 12px; }
.finding div { min-width: 0; }
.finding strong, .finding small { display: block; }
.finding small { margin-top: 2px; color: var(--muted); font-size: 0.72rem; font-weight: 550; }
.finding.warning span { background: var(--amber); }
.device-chip { width: max-content; margin: 18px auto -47px; padding: 9px 18px; color: white; background: var(--navy); border-radius: 999px; box-shadow: 0 10px 24px rgba(11, 23, 51, 0.18); font-size: 0.78rem; font-weight: 750; }

.section { padding: 88px 0; }
.section-soft { background: var(--wash); border-block: 1px solid #e7ebf2; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: 50px; }
.split-heading > p { margin: 0; }
.section-lede { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 790px; color: #3f506d; font-size: 1.05rem; }
.prose p:first-of-type { font-size: 1.14rem; color: #2c3d5b; }
.prose h2 { margin: 46px 0 14px; }
.prose h3 { margin: 34px 0 10px; }
.prose a { color: var(--blue); font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .step-card, .trust-card {
  padding: 27px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(29, 64, 130, 0.06);
}
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; color: var(--blue); background: #eaf1ff; border-radius: 12px; font-weight: 850; }
.feature-card p, .step-card p, .trust-card p { margin-bottom: 0; color: var(--muted); }
.steps { counter-reset: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { counter-increment: steps; }
.step-card::before { content: "0" counter(steps); display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 18px; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-size: .82rem; font-weight: 850; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; min-height: 410px; padding: 30px; color: var(--ink); text-decoration: none; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(18, 37, 74, 0.06); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.product-card:hover { transform: translateY(-4px); border-color: #a9bdf6; box-shadow: var(--shadow); }
.product-card-primary { border-top: 4px solid var(--blue); }
.product-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 32px; color: var(--blue); background: var(--blue-soft); border: 1px solid #d8e2ff; border-radius: 15px; font-size: .76rem; font-weight: 900; letter-spacing: .04em; }
.product-kicker { margin-bottom: 10px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.product-card h3 { font-size: 1.65rem; }
.product-card p { color: var(--muted); }
.product-privacy { width: max-content; max-width: 100%; margin-top: auto; padding: 6px 10px; color: #086044; background: var(--green-soft); border-radius: 999px; font-size: .76rem; font-weight: 750; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--blue-dark); font-size: .94rem; }
.card-link span { font-size: 1.15rem; }

.trust-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 68px; align-items: center; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trust-grid article { min-width: 0; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.trust-grid article > span { display: block; margin-bottom: 22px; color: var(--green); font-size: .72rem; font-weight: 850; }
.trust-grid h3 { font-size: 1.05rem; }
.trust-grid p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.text-link { color: var(--blue-dark); font-weight: 760; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.capability-grid .feature-card { min-width: 0; }

.utility-callout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 62px; align-items: center; padding: 56px; color: white; background: var(--navy); border-radius: 28px; }
.utility-callout h2 { color: white; }
.utility-callout p { max-width: 700px; color: #bdc8dc; }
.utility-callout .eyebrow { color: #8faeff; }
.utility-callout .button-quiet { color: white; background: transparent; border-color: #42506a; }
.utility-count { display: grid; place-items: center; align-content: center; min-height: 220px; text-align: center; background: #111f3d; border: 1px solid #293957; border-radius: 22px; }
.utility-count strong { font-size: 4.6rem; line-height: .95; letter-spacing: -.06em; }
.utility-count span { max-width: 120px; margin-top: 12px; color: #aebbd0; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.category-links a { padding: 7px 11px; color: #dce5f5; text-decoration: none; border: 1px solid #3b4b69; border-radius: 999px; font-size: .78rem; }
.seo-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 70px; align-items: start; }
.seo-layout .prose h2 { margin-top: 0; }
.compact-faq details:first-child { margin-top: 0; }

.privacy-architecture { display: grid; grid-template-columns: repeat(7, auto); align-items: center; justify-content: start; gap: 14px; margin: 28px 0; }
.privacy-architecture strong { padding: 13px 16px; color: #12345d; background: white; border: 1px solid #d9e2ef; border-radius: 12px; }
.privacy-architecture span { color: var(--teal); font-size: 1.5rem; }
.not-architecture { color: var(--muted); text-decoration: line-through; }

.tool-workspace-section { background: white; }
.workspace-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-bottom: 26px; }
.workspace-heading h2 { max-width: 760px; }
.workspace-heading > div > p:last-child { max-width: 720px; color: var(--muted); }
.privacy-badge { min-width: 230px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin: 0; padding: 14px 16px; color: #075d42; background: var(--green-soft); border: 1px solid #c5e9d9; border-radius: 14px; }
.privacy-badge > span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-size: .8rem; }
.privacy-badge strong, .privacy-badge small { display: block; line-height: 1.3; }
.privacy-badge strong { font-size: .88rem; }
.privacy-badge small { color: #387861; font-size: .72rem; }
.workflow-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; padding: 0; list-style: none; background: #f8f9fc; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.workflow-strip li { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px 15px; color: var(--muted); border-right: 1px solid var(--line); font-size: .8rem; }
.workflow-strip li:last-child { border-right: 0; }
.workflow-strip li > span { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; color: var(--blue-dark); background: white; border: 1px solid #d7e0ee; border-radius: 8px; font-size: .7rem; font-weight: 850; }
.workflow-strip li strong { min-width: 0; line-height: 1.25; }
.workflow-strip li.is-active { color: var(--ink); background: white; }
.workflow-strip li.is-active > span { color: white; background: var(--blue); border-color: var(--blue); }
.workflow-strip li.is-complete > span { color: white; background: var(--green); border-color: var(--green); }

.checker-shell {
  scroll-margin-top: 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(280px, 0.63fr);
  gap: 24px;
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.checker-pane { min-width: 0; padding: 24px; }
.checker-upload-pane { border-right: 1px solid var(--line); }
.checker-intro { margin-bottom: 20px; }
.checker-intro h3 { font-size: 1.38rem; }
.checker-intro p { color: var(--muted); }
.step-label { margin: 0 0 8px !important; color: var(--blue) !important; font-size: .7rem !important; font-weight: 850; letter-spacing: .13em; }
.drop-zone {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: #f8faff;
  border: 1.5px dashed #9eb2d8;
  border-radius: 16px;
  cursor: pointer;
  transition: border 150ms ease, background 150ms ease;
}
.drop-zone:hover, .drop-zone.dragging { background: #eef5ff; border-color: var(--blue); }
.drop-zone:focus-within { border-color: var(--blue); outline: 3px solid rgba(36, 87, 245, .13); outline-offset: 2px; }
.drop-zone.has-file { background: #f0fbf6; border-color: #6dbd9b; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 13px; color: var(--blue); background: #e4eeff; border-radius: 15px; font-size: 24px; }
.drop-zone strong { display: block; font-size: 1.1rem; }
.drop-zone small, .file-status { color: var(--muted); }
.drop-zone em { width: max-content; display: block; margin: 14px auto 0; padding: 7px 13px; color: var(--blue-dark); background: white; border: 1px solid #cedaf0; border-radius: 9px; font-size: .78rem; font-style: normal; font-weight: 750; }
.file-status { min-height: 25px; margin: 12px 0; font-weight: 650; }
.checker-settings { display: grid; gap: 17px; align-content: start; padding: 24px; background: var(--wash); border-radius: 17px; }
.field label, .field-label { display: block; margin-bottom: 7px; font-size: 0.92rem; font-weight: 750; }
.field select, .field textarea { width: 100%; color: var(--ink); background: white; border: 1px solid #cbd8eb; border-radius: 12px; }
.field select { min-height: 46px; padding: 8px 12px; }
.field textarea { min-height: 150px; padding: 12px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: #354664; font-size: 0.93rem; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.local-note { display: flex; gap: 9px; color: var(--green); font-size: 0.88rem; font-weight: 700; }
.progress-panel { margin-top: 20px; padding: 15px 18px; color: #174683; background: #edf3ff; border: 1px solid #d7e2fb; border-radius: 13px; font-weight: 680; }
.results { scroll-margin-top: 100px; margin-top: 28px; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.report-summary div { padding: 18px; text-align: center; background: #f4f8fe; border: 1px solid var(--line); border-radius: 16px; }
.report-summary strong, .report-summary span { display: block; }
.report-summary strong { font-size: 1.6rem; }
.report-summary span { color: var(--muted); font-size: 0.85rem; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.report-wide { grid-column: 1 / -1; }
.check-results, .abbreviation-results, .detail-results ul { padding: 0; list-style: none; }
.check-result { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #edf1f7; }
.check-result > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; color: white; border-radius: 50%; font-weight: 800; }
.check-result div > * { display: block; }
.check-result small { color: var(--muted); }
.check-found > span { background: var(--green); }
.check-unclear > span { background: var(--amber); }
.check-missing > span { background: var(--red); }
.abbreviation-results li { padding: 12px 0; border-bottom: 1px solid #edf1f7; }
.abbreviation-results strong { display: block; color: var(--blue-dark); }
.abbreviation-results span { color: var(--muted); }
.detail-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-results li { color: #40506d; overflow-wrap: anywhere; }
.extracted-text { margin: 18px 0; padding: 18px; background: #101c33; border-radius: 16px; color: white; }
.extracted-text summary { cursor: pointer; font-weight: 750; }
.extracted-text pre { max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #dce8ff; font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.report-disclaimer { color: var(--muted); font-size: 0.92rem; }
.error-panel { padding: 24px; color: #701c2a; background: #fff1f3; border: 1px solid #ffcbd2; border-radius: 16px; }

/* Document Sorter */
[data-document-sorter] .checker-shell { align-items: start; }
[data-document-sorter] .checker-shell:has([data-sorter-reference-step][hidden]) { grid-template-columns: 1fr; }
[data-document-sorter] .checker-shell:has([data-sorter-reference-step][hidden]) > .checker-pane { border-right: 0; }
[data-document-sorter] .sorter-input-shell > .checker-pane:first-child { border-right: 1px solid var(--line); }
[data-document-sorter] .sorter-input-shell:has([data-sorter-reference-step][hidden]) > .checker-pane:first-child { border-right: 0; }
[data-document-sorter] .file-status { overflow-wrap: anywhere; }
[data-sorter-reference-step] { min-width: 0; }
[data-sorter-reference-step] .drop-zone { min-height: 156px; }
.sorter-workflow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sorter-state-banner { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 0 0 18px; padding: 13px 16px; color: #2e405d; background: #f7f9fc; border: 1px solid var(--line); border-radius: 13px; }
.sorter-state-banner .state-dot { grid-row: 1 / 3; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 5px rgba(36, 87, 245, .1); }
.sorter-state-banner strong, .sorter-state-banner small { display: block; line-height: 1.35; }
.sorter-state-banner small { color: var(--muted); font-size: .78rem; }
[data-sorter-state="analyzing"] .sorter-state-banner { color: #173d84; background: #eef3ff; border-color: #cedbfa; }
[data-sorter-state="analyzing"] .state-dot { animation: sorter-pulse 1.2s ease-in-out infinite; }
[data-sorter-state="results"] .sorter-state-banner,
[data-sorter-state="download-ready"] .sorter-state-banner { color: #075d42; background: var(--green-soft); border-color: #c5e9d9; }
[data-sorter-state="results"] .state-dot,
[data-sorter-state="download-ready"] .state-dot { background: var(--green); box-shadow: 0 0 0 5px rgba(8, 122, 85, .1); }
[data-sorter-state="error"] .sorter-state-banner { color: #7c2432; background: #fff1f3; border-color: #f2c8cf; }
[data-sorter-state="error"] .state-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(173, 45, 61, .1); }
@keyframes sorter-pulse { 50% { opacity: .4; transform: scale(.82); } }
[data-sorter-requirements] small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}
[data-sorter-requirements] textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 89, 232, 0.13);
}
[data-sorter-confirm-panel] {
  margin-top: 18px;
  border: 1px solid #cfe2f8;
  border-left: 4px solid var(--blue);
  box-shadow: none;
}
[data-sorter-confirm-panel] > strong { display: block; font-size: 1.08rem; }
[data-sorter-confirm-panel] > p { margin: 5px 0 16px; color: var(--muted); }
[data-sorter-confirm-panel] .hero-actions { margin-top: 0; }
[data-sorter-progress] { overflow-wrap: anywhere; }

.sorter-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sorter-summary div { min-width: 0; }
.sorter-summary div:nth-child(1) strong { color: var(--green); }
.sorter-summary div:nth-child(2) strong { color: var(--red); }
.sorter-summary div:nth-child(3) strong { color: var(--amber); }
.sorter-summary div:nth-child(4) strong { color: var(--blue-dark); }
.sorter-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.sorter-wide { grid-column: 1 / -1; }
.sorter-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.sorter-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #edf1f7;
}
.sorter-list > li:last-child { border-bottom: 0; }
.sorter-list > li > div,
.sorter-list > li > strong { min-width: 0; overflow-wrap: anywhere; }
.sorter-list small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.45; }
.sorter-list.compact > li { grid-template-columns: minmax(0, 1fr) auto; }
.sort-order {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: #eaf1ff;
  border: 1px solid #d4e2fb;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.sort-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.sort-status.found { color: #0b6848; background: #e8f8f0; border-color: #bfe7d3; }
.sort-status.review { color: #805008; background: #fff7e4; border-color: #f1d79b; }
.sort-status.missing { color: #8d2433; background: #fff0f2; border-color: #f4c3cb; }
.sorter-list .empty-result {
  display: block;
  padding: 14px;
  color: var(--muted);
  background: var(--wash);
  border: 1px dashed #cbd8eb;
  border-radius: 12px;
}
.sorter-ambiguity {
  margin-top: 18px;
  padding: 16px;
  color: #68420a;
  background: #fff9eb;
  border: 1px solid #efd69e;
  border-radius: 14px;
}
.sorter-ambiguity > strong { display: block; }
.sorter-ambiguity ul { margin: 8px 0 0; padding-left: 20px; }
.sorter-ambiguity li { margin-top: 5px; overflow-wrap: anywhere; }
[data-sorter-download] { margin-top: 4px; }

.content-hero { padding: 68px 0 54px; background: #f8faff; border-bottom: 1px solid #e8edf5; }
.content-hero .container { max-width: 1200px; }
.content-hero h1 { max-width: 820px; font-size: clamp(2.45rem, 4.5vw, 4.35rem); }
.content-hero p { max-width: 770px; color: #40506d; font-size: 1.12rem; }
.landing-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 70px; align-items: center; }
.landing-hero .hero-actions { margin-top: 28px; }
.landing-hero .trust-line { font-size: .84rem; }
.landing-trust-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 38px rgba(18, 37, 74, .07); }
.landing-trust-card .trust-shield { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 24px; color: white; background: var(--green); border-radius: 14px; font-weight: 850; }
.landing-trust-card .eyebrow { margin-bottom: 8px; color: var(--green); }
.landing-trust-card h2 { font-size: 1.45rem; }
.landing-trust-card p { color: var(--muted); font-size: .9rem; }
.landing-trust-card a { color: var(--blue-dark); font-size: .84rem; font-weight: 750; text-decoration: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 0.9rem; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 270px; gap: 64px; align-items: start; }
.side-card { position: sticky; top: 98px; padding: 22px; background: var(--wash); border: 1px solid var(--line); border-radius: 18px; }
.side-card h2 { font-size: 1.2rem; }
.side-card ul { padding-left: 18px; color: var(--muted); }
.side-card a { color: var(--blue); font-weight: 700; }
.inline-note { padding: 20px; color: #25405f; background: #eef6ff; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; }
.disclaimer { padding: 20px; color: #5d3c0c; background: #fff8e9; border: 1px solid #f0d7a1; border-radius: 14px; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.link-card { padding: 20px; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 16px; }
.link-card:hover { border-color: #9db9ec; box-shadow: 0 10px 25px rgba(29, 64, 130, .08); }
.link-card strong, .link-card span { display: block; }
.link-card span { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }

.faq-list details { margin: 12px 0; padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { color: var(--muted); }

.site-footer { margin-top: 70px; padding: 60px 0 28px; color: #dce6fa; background: #0d1b33; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 42px; }
.footer-brand p { max-width: 310px; color: #aebbd1; }
.footer-brand .brand-lockup small { color: #8fa0bb; }
.footer-trust { display: inline-block; margin-top: 8px; color: #9ed8c3; font-size: .78rem; font-weight: 700; }
.footer-column h2 { margin-bottom: 14px; color: white; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-column a { display: block; margin: 8px 0; color: #b7c4d9; text-decoration: none; }
.footer-column a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #263653; color: #9faec6; font-size: 0.88rem; }

@media (max-width: 1080px) {
  .nav-button { display: block; min-width: 44px; min-height: 44px; }
  .nav-wrap { position: absolute; display: none; inset: 76px 20px auto; max-height: calc(100dvh - 92px); overflow-y: auto; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-wrap.is-open { display: block; }
  .site-nav { align-items: stretch; flex-direction: column; gap: 3px; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; padding: 9px 10px; }
  .header-actions { margin-top: 10px; }
  .header-actions .button { width: 100%; }
}

@media (max-width: 920px) {
  .hero-grid, .checker-shell, .article-layout, .trust-layout, .landing-hero-grid, .seo-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .card-grid, .steps, .product-grid, .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card:last-child { grid-column: 1 / -1; min-height: 320px; }
  .landing-trust-card { max-width: 520px; }
  .checker-upload-pane, [data-document-sorter] .sorter-input-shell > .checker-pane:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .utility-callout { grid-template-columns: 200px minmax(0, 1fr); gap: 38px; padding: 40px; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .header-inner, .container { width: min(100% - 28px, 1200px); }
  .header-inner { min-height: 64px; }
  .brand-lockup small { display: none; }
  .nav-wrap { inset: 64px 12px auto; max-height: calc(100dvh - 76px); }
  .hero { padding: 62px 0 48px; }
  .hero-grid { gap: 34px; }
  .hero-visual { display: none; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.35rem); }
  h2 { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .section { padding: 62px 0; }
  .split-heading, .workspace-heading { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .privacy-badge { min-width: 0; width: 100%; }
  .card-grid, .steps, .link-cards, .report-grid, .detail-results, .product-grid, .capability-grid, .trust-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:last-child { min-height: 340px; grid-column: auto; }
  .workflow-strip { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; }
  .workflow-strip li { flex: 0 0 168px; scroll-snap-align: start; }
  .utility-callout { grid-template-columns: 1fr; gap: 28px; padding: 28px; border-radius: 22px; }
  .utility-count { min-height: 150px; }
  .utility-count strong { font-size: 3.7rem; }
  .report-wide { grid-column: auto; }
  .privacy-architecture { grid-template-columns: 1fr; justify-items: stretch; text-align: center; }
  .privacy-architecture span { transform: rotate(90deg); }
  .checker-shell { padding: 18px; border-radius: 20px; }
  .checker-settings { padding: 18px; }
  .report-summary { grid-template-columns: 1fr; }
  .sorter-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sorter-result-grid { grid-template-columns: 1fr; }
  .sorter-wide { grid-column: auto; }
  .sorter-list > li { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .sorter-list > li .sort-status { grid-column: 2; justify-self: start; }
  .sorter-list.compact > li { grid-template-columns: minmax(0, 1fr) auto; }
  .sorter-list.compact > li .sort-status { grid-column: auto; justify-self: end; }
  .content-hero { padding: 48px 0 42px; }
  .landing-hero-grid { gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 390px) {
  .header-inner, .container { width: min(100% - 22px, 1200px); }
  .brand-symbol { width: 32px; height: 32px; }
  .brand-lockup strong { font-size: .92rem; }
  .hero-actions .button { width: 100%; }
  .checker-pane { padding: 18px 14px; }
  .drop-zone { min-height: 170px; padding: 20px 14px; }
  [data-sorter-confirm-panel] .button,
  [data-sorter-download] { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

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