@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/inter@5.3.0/files/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/inter@5.3.0/files/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/inter@5.3.0/files/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@5.3.0/files/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/space-grotesk@5.3.0/files/space-grotesk-latin-700-normal.woff2') format('woff2');
}
:root {
  --accent: #1f4fd8;
  --accent-hover: #1639a3;
  --accent-soft: #eef2fc;
  --accent-line: #9db5f5;
  --ink: #0e1726;
  --text: #334155;
  --muted: #4a5568;
  --line: #e3e8f0;
  --line-soft: #edf1f6;
  --line-strong: #c9d2e0;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --paper: #ffffff;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgb(14 23 38 / 4%), 0 16px 40px rgb(14 23 38 / 7%);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.brand-mark {
  display: inline-flex;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.header-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.9375rem;
}
.header-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #334155;
  font-weight: 500;
  text-decoration: none;
}
.header-inner nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}
.header-inner nav a[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.menu-toggle,
.menu-toggle[hidden] {
  display: none;
}
@media (max-width: 960px) {
  .has-menu .header-inner {
    flex-wrap: nowrap;
  }
  .has-menu .menu-toggle:not([hidden]) {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
  }
  .has-menu .menu-toggle:hover {
    border-color: var(--accent);
  }
  .has-menu .menu-toggle:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }
  .has-menu .menu-toggle[aria-expanded='true'] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .menu-toggle .menu-icon-close,
  .menu-toggle[aria-expanded='true'] .menu-icon-open {
    display: none;
  }
  .menu-toggle[aria-expanded='true'] .menu-icon-close {
    display: block;
  }
  .has-menu .header-inner {
    position: relative;
  }
  .has-menu .header-inner nav {
    display: none;
  }
  .has-menu.menu-open .header-inner nav {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 24px rgb(14 23 38 / 8%);
  }
  .has-menu.menu-open .header-inner nav a {
    padding: 0 12px;
  }
}
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 48px;
}
.footer-about {
  flex: 1 1 380px;
  min-width: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
}
.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 8px;
}

.footer-note {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 24px;
}
.footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #334155;
}
.footer-inner nav a:hover {
  color: var(--accent);
}
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 88px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose h1 {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.prose h2 {
  margin: 2.4rem 0 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose strong {
  color: var(--ink);
}
.prose li {
  margin-bottom: 8px;
}
.breadcrumb {
  padding-top: 20px;
  font-size: 0.875rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '›';
  content: '›' / '';
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a {
  display: inline-block;
  padding: 4px 0;
  margin: -4px 0;
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .prose {
    padding-top: 32px;
    padding-bottom: 56px;
  }
}
@media (max-width: 640px) {
  .wrap.header-inner {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .has-menu .brand {
    min-width: 0;
    white-space: nowrap;
  }
  .wrap.breadcrumb {
    padding-top: 14px;
  }
}
@media (max-width: 400px) {
  .has-menu .brand {
    gap: 8px;
    font-size: 1.0625rem;
  }
  .has-menu .menu-toggle:not([hidden]) {
    padding: 8px 12px;
  }
}
.footer-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #334155;
  font: inherit;
  cursor: pointer;
}
.footer-button:hover {
  color: var(--accent);
}
.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  max-width: 880px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.9375rem;
  pointer-events: auto;
}
.consent-inner p {
  flex: 1 1 420px;
  margin: 0;
}
.consent-inner strong {
  color: var(--ink);
}
.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.consent-button {
  min-width: 112px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-button:hover {
  background: var(--accent-soft);
}
@media (max-width: 640px) {
  .consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }
  .consent-inner {
    padding: 14px 16px;
    font-size: 0.875rem;
  }
  .consent-actions {
    flex: 1 1 100%;
  }
  .consent-button {
    flex: 1 1 0;
  }
}
@media print {
  .consent {
    display: none !important;
  }
}
.wrap.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
  padding-top: 64px;
  padding-bottom: 80px;
}
.breadcrumb + .wrap.hero {
  padding-top: 36px;
}
.page-intro {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}
.hero > .viewer {
  flex: 1 1 460px;
  min-width: 0;
}
.hero:has(> .viewer[data-state='result']) > .viewer {
  flex-basis: 100%;
}
.eyebrow {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}
.page-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.375rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.55;
}
.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tool-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #1e293b;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.tool-links a:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
@media (max-width: 640px) {
  .wrap.hero {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
  .breadcrumb + .wrap.hero {
    padding-top: 24px;
  }
  .page-intro {
    display: contents;
  }
  .page-intro > * {
    order: 1;
  }
  .page-intro > .eyebrow {
    align-self: flex-start;
  }
  .hero > .viewer {
    order: 2;
    flex-basis: auto;
    margin-top: 8px;
  }
  .page-intro > .tool-links {
    order: 3;
    margin-top: 8px;
  }
  .page-intro h1 {
    font-size: 2.25rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
}
.sections-band {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.wrap.page-sections {
  padding-bottom: 8px;
}
.section {
  padding: 64px 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}

.section > * {
  max-width: 760px;
}
.section > h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section > h3 {
  margin: 28px 0 6px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}
.section > h2 + h3 {
  margin-top: 8px;
}
.section p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section > :last-child {
  margin-bottom: 0;
}
.section strong {
  color: var(--ink);
  font-weight: 600;
}
.section > ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section > ul li {
  margin-bottom: 8px;
}
.section > ul li::marker {
  color: var(--accent);
}
.section:has(> .steps),
.section#faq {
  border-top-color: transparent;
  background: var(--bg-soft);
  box-shadow: 0 0 0 100vmax var(--bg-soft);
  clip-path: inset(0 -100vmax);
}
.section:has(> .steps) + .section,
.section#faq + .section {
  border-top-color: transparent;
}
@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}
.section > .steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  flex: 1 1 240px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / '';
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
}
.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.section > .table-wrap {
  max-width: 960px;
  margin: 24px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.formats {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}
.formats th {
  padding: 12px 18px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.formats td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.formats td:first-child {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
}
.section:has(> .privacy-diagram) {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 64px;
}
.section:has(> .privacy-diagram) > * {
  grid-column: 1;
}

.section > .privacy-diagram {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  gap: 16px;
  max-width: none;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-soft);
}
.pd-label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.pd-node {
  display: flex;
  flex: 1 1 160px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.pd-node svg {
  flex: none;
  width: 26px;
  height: 26px;
}
.pd-node b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}
.pd-node small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.pd-node--on {
  padding: 15px;
  border: 2px solid var(--accent);
}
.pd-node--on svg {
  color: var(--accent);
}
.privacy-diagram > .pd-node {
  flex: none;
}
.pd-node--off svg {
  color: #64748b;
}
.pd-node--off .pd-text {
  flex: 1;
}
.pd-arrow {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.pd-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.pd-sep::before,
.pd-sep::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--line-strong);
}
.pd-x {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fdecec;
  color: #b42318;
}
.pd-x svg {
  width: 16px;
  height: 16px;
  color: inherit;
}
@media (max-width: 860px) {
  .section:has(> .privacy-diagram) {
    display: block;
  }
  .section > .privacy-diagram {
    margin-top: 24px;
  }
}
.section#faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  column-gap: 64px;
}
.section#faq > * {
  max-width: none;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 20px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.section .faq p {
  max-width: none;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}
@media (max-width: 860px) {
  .section#faq {
    display: block;
  }
}
.section > .related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.related li {
  display: flex;
  margin: 0;
}
.related a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 24px 52px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.related a:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card);
}
.related a::after {
  content: '→';
  content: '→' / '';
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.15s;
}
.related a:hover::after {
  transform: translateX(3px);
}
.related-name {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.related a:hover .related-name {
  color: var(--accent);
}
.related-blurb {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.related-blurb::first-letter {
  text-transform: uppercase;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.shot {
  margin: 24px 0 28px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.formats.cases {
  min-width: 720px;
}
.formats.cases td {
  vertical-align: top;
  line-height: 1.5;
}
.formats.cases td:first-child {
  min-width: 140px;
  font-size: 1rem;
  white-space: normal;
}
.formats.cases code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  word-break: break-word;
}
.section > .table-wrap + * {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .section > .table-wrap:has(.cases) {
    overflow: visible;
    border: 0;
  }
  .formats.cases {
    min-width: 0;
  }
  .formats.cases thead {
    display: none;
  }
  .formats.cases tr {
    display: block;
    margin: 0 0 12px;
    padding: 4px 16px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .formats.cases td {
    display: block;
    padding: 8px 0;
    border-top: 0;
  }
  .formats.cases td + td {
    border-top: 1px solid var(--line);
  }
  .formats.cases td + td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}
.viewer [data-show] {
  display: none;
}
.viewer[data-state='empty'] [data-show~='empty'],
.viewer[data-state='loading'] [data-show~='loading'],
.viewer[data-state='error'] [data-show~='error'],
.viewer[data-state='result'] [data-show~='result'] {
  display: block;
}
.dropzone-wrap {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.file-input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 52px 24px 44px;
  border: 2px dashed var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.dropzone:hover {
  border-color: var(--accent);
}
.dropzone.is-dragover {
  border-style: solid;
  border-color: var(--accent);
  background: #e0e8fb;
}
.file-input:focus-visible + .dropzone {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.dz-icon {
  display: flex;
  order: 0;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 4px 14px rgb(14 23 38 / 8%);
  color: var(--accent);
}
.dz-icon svg {
  width: 30px;
  height: 30px;
}
.dz-text {
  display: contents;
}

.dz-title {
  order: 1;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
}
.dz-button {
  order: 2;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.dz-formats {
  order: 3;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
}
.dz-sample {
  margin: 10px 0 0;
  text-align: center;
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.btn-quiet:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-quiet:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.dz-hint {
  margin: 12px 8px 0;
  color: var(--text);
  font-size: 0.9375rem;
  text-align: center;
}
.sample-badge {
  margin: 0 0 14px;
  padding: 10px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}
.sample-badge strong {
  color: var(--accent);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.scroll-hint-arrows {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 16px 12px 6px;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.viewer[data-state='loading'] .dropzone {
  opacity: 0.5;
  pointer-events: none;
}
.loading {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}
.error-box {
  margin: 16px 0 0;
  padding: 18px 20px;
  border: 1px solid #f3c1bb;
  border-radius: 14px;
  background: #fef3f2;
}
.error-box .error-title {
  margin: 0 0 6px;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 600;
}
.error-box p {
  margin: 0 0 12px;
  color: var(--text);
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.result-name .result-title:focus {
  outline: none;
}
.result-name {
  min-width: 0;
}
.result-name .result-title {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
}
.result-name p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card {
  margin: 0 0 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.plain-list li:first-child {
  border-top: 0;
}
.disclaimer {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.invoice-host {
  margin: 0 0 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}
.invoice-host[hidden] {
  display: none;
}
.pdf-view iframe {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.print-attachments {
  display: none;
}
@media (max-width: 640px) {
  .dropzone {
    gap: 12px;
    padding: 28px 16px 24px;
  }
  .dz-icon {
    width: 56px;
    height: 56px;
  }
  .dz-title {
    font-size: 1.375rem;
  }
  .toolbar .btn {
    flex: 1 1 auto;
  }
  .invoice-host {
    padding: 12px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 15mm 12mm 18mm;
    @bottom-center {
      content: 'Visualizzata con visualizzarefatturaelettronica.com';
      font: 8pt system-ui, sans-serif;
      color: #6b7280;
    }
  }
  :root,
  body {
    background: #fff;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .page-intro,
  .sections-band,
  .page-sections,
  .dropzone-wrap,
  .loading,
  .error-box,
  .result-head,
  .toolbar,
  .btn,
  #signature-card,
  #attachments-card,
  #unknown-view,
  #scroll-hint,
  #status {
    display: none !important;
  }
  .viewer,
  .result {
    display: block !important;
  }
  .hero,
  .wrap {
    padding: 0 !important;
  }
  .hero {
    display: block !important;
  }
  .result {
    max-width: none;
  }
  .invoice-host {
    border: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
  }
  .print-attachments:not([hidden]) {
    display: block;
    margin-top: 8mm;
    break-inside: avoid;
    font: 10pt system-ui, sans-serif;
  }
  .print-attachments .print-heading {
    margin: 0 0 2mm;
    color: inherit;
    font-size: 11pt;
    font-weight: 700;
  }
  .print-attachments ul {
    margin: 0 0 2mm;
    padding-left: 5mm;
  }
  .print-attachments p {
    margin: 0;
    color: #4b5563;
  }
}
