:root {
  color-scheme: light;
  --page: #fff7e8;
  --page-soft: #fffbf2;
  --surface: #ffffff;
  --surface-strong: #f5efff;
  --ink: #18152a;
  --muted: #655f73;
  --line: #ded5e4;
  --line-strong: #c8bcdc;
  --primary: #6748dc;
  --primary-strong: #4f31c5;
  --primary-soft: #ece6ff;
  --accent: #0aa895;
  --accent-soft: #d9f8f2;
  --coral: #f47855;
  --warning: #9a5d00;
  --warning-soft: #fff0cc;
  --danger: #ae344c;
  --danger-soft: #ffe7ec;
  --shadow: 0 18px 54px rgba(60, 39, 90, 0.13);
  --shadow-small: 0 8px 24px rgba(53, 37, 80, 0.1);
  --radius-large: 28px;
  --radius: 18px;
  --radius-small: 12px;
  --max-width: 1180px;
}

:root[data-theme="blue"] {
  color-scheme: light;
  --page: #eaf3ff;
  --page-soft: #f5f9ff;
  --surface: #ffffff;
  --surface-strong: #dceaff;
  --ink: #0b1c3b;
  --muted: #53657d;
  --line: #c8d8ef;
  --line-strong: #a8c0e4;
  --primary: #1665d8;
  --primary-strong: #064bb4;
  --primary-soft: #d9e9ff;
  --accent: #078e8d;
  --accent-soft: #d6f7f4;
  --shadow: 0 18px 54px rgba(24, 75, 142, 0.15);
  --shadow-small: 0 8px 24px rgba(25, 70, 128, 0.11);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #11121a;
  --page-soft: #171923;
  --surface: #1d1f2b;
  --surface-strong: #29263e;
  --ink: #f5f2ff;
  --muted: #b8b3c5;
  --line: #363747;
  --line-strong: #4c4e62;
  --primary: #9a82ff;
  --primary-strong: #b3a2ff;
  --primary-soft: #322c54;
  --accent: #5ce1d2;
  --accent-soft: #183d3b;
  --coral: #ff956f;
  --warning: #ffc66d;
  --warning-soft: #3e321f;
  --danger: #ff91a7;
  --danger-soft: #43252f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 8% 3%, color-mix(in srgb, var(--primary) 9%, transparent) 0 10rem, transparent 29rem),
    radial-gradient(circle at 96% 13%, color-mix(in srgb, var(--accent) 9%, transparent) 0 8rem, transparent 24rem),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-strong);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.75rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

code {
  border: 1px solid var(--line);
  border-radius: 0.36em;
  background: var(--surface-strong);
  padding: 0.05em 0.3em;
  color: var(--ink);
  font-size: 0.9em;
}

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  padding: 10px 15px;
  color: var(--surface);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 80%, white);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.05;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(82, 50, 196, 0.2);
}

.brand span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.brand strong {
  font-size: 1.14em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--ink);
}

.theme-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
  box-shadow: var(--shadow-small);
}

.theme-choice {
  display: flex;
  min-width: 36px;
  min-height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.theme-choice[aria-pressed="true"] {
  background: var(--primary-soft);
  color: var(--ink);
}

.theme-dot {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.theme-dot-warm {
  background: #ffdba3;
}

.theme-dot-blue {
  background: #2480ed;
}

.theme-dot-dark {
  background: #20222e;
}

.hero {
  display: grid;
  min-height: 610px;
  align-items: center;
  padding-block: 76px 52px;
  gap: 64px;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, 0.86fr);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-proof b {
  margin-right: 3px;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 48% 52% 58% 42%;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  content: "";
  filter: blur(1px);
  transform: rotate(-8deg);
}

.source-file,
.ready-sticker {
  position: absolute;
  display: flex;
  width: 168px;
  height: 205px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px 44px 24px 24px;
  box-shadow: var(--shadow);
}

.source-file {
  left: 0;
  transform: rotate(-8deg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.ready-sticker {
  right: 0;
  transform: rotate(6deg);
  background: linear-gradient(155deg, #836aff, #5536ca);
  color: #fff;
}

.file-fold,
.sticker-fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 45px;
  border-radius: 0 41px 0 16px;
}

.file-fold {
  background: var(--primary-soft);
}

.sticker-fold {
  background: #ffb677;
}

.source-file b {
  color: var(--primary);
  font-size: 2.15rem;
}

.source-file small,
.ready-sticker small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.ready-sticker small {
  color: #e8e4ff;
}

.ready-sticker > strong {
  position: absolute;
  bottom: 13px;
  border-radius: 999px;
  background: #70ead9;
  padding: 4px 12px;
  color: #173f3a;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.sticker-face {
  position: relative;
  width: 82px;
  height: 94px;
  border-radius: 15px 27px 15px 15px;
  background: #fff;
}

.sticker-face::after {
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 0 22px 22px;
  border-style: solid;
  border-color: transparent transparent #d9d3ff transparent;
  content: "";
}

.sticker-face i {
  position: absolute;
  top: 43px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6044d5;
}

.sticker-face i:first-child {
  left: 23px;
}

.sticker-face i:nth-child(2) {
  right: 23px;
}

.sticker-face b {
  position: absolute;
  bottom: 22px;
  left: 30px;
  width: 25px;
  height: 11px;
  border-bottom: 4px solid #6044d5;
  border-radius: 50%;
}

.compression-track {
  position: relative;
  display: flex;
  width: 118px;
  justify-content: center;
  gap: 10px;
}

.compression-track::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 100%;
  border-top: 2px dashed var(--line-strong);
  content: "";
}

.compression-track span {
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid var(--page);
  border-radius: 50%;
  background: var(--accent);
}

.motion-line {
  position: absolute;
  left: -29px;
  width: 24px;
  border-top: 3px solid var(--coral);
  border-radius: 3px;
}

.line-one {
  top: 70px;
}

.line-two {
  top: 97px;
  left: -39px;
  width: 32px;
}

.line-three {
  top: 124px;
}

.tool-section {
  scroll-margin-top: 90px;
  padding-bottom: 96px;
}

.tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tool-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--coral));
  content: "";
}

.tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 38px 25px;
}

.tool-heading h2 {
  margin-bottom: 9px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.tool-heading p,
.section-intro p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.spec-pills {
  display: flex;
  max-width: 310px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.spec-pills span {
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 6px 10px;
  color: var(--primary-strong);
  font-size: 0.73rem;
  font-weight: 900;
  white-space: nowrap;
}

.quick-controls {
  display: grid;
  align-items: start;
  border-block: 1px solid var(--line);
  background: var(--page-soft);
  padding: 22px 38px;
  gap: 24px;
  grid-template-columns: minmax(250px, 0.55fr) minmax(350px, 1fr);
}

.target-control > span,
.advanced-grid label > span,
.feedback-form-card label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.target-control {
  display: grid;
  align-items: center;
  gap: 7px 13px;
  grid-template-columns: auto minmax(120px, 1fr);
}

.target-control > span,
.target-control small {
  grid-column: 1 / -1;
}

.target-control small,
.advanced-options summary small {
  color: var(--muted);
  font-size: 0.72rem;
}

.target-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

.target-input input {
  width: 74px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 4px 8px 10px;
  font-weight: 850;
}

.target-input b {
  padding-right: 9px;
  color: var(--muted);
  font-size: 0.75rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.advanced-options {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.advanced-options summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-weight: 850;
}

.advanced-options summary::marker {
  color: var(--primary);
}

.advanced-options[open] summary {
  border-bottom: 1px solid var(--line);
}

.advanced-grid {
  display: grid;
  padding: 16px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

select,
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 11px;
  outline: 0;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--primary);
}

.drop-zone {
  display: grid;
  min-height: 310px;
  cursor: pointer;
  align-items: center;
  margin: 30px 38px 12px;
  border: 2px dashed var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 25%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 36%),
    var(--page-soft);
  padding: 36px;
  gap: 28px;
  grid-template-columns: 104px minmax(0, 1fr) minmax(230px, 0.56fr);
  transition: 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--primary);
  background-color: var(--primary-soft);
  transform: translateY(-1px);
}

.drop-illustration {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 25px;
  background: var(--primary-soft);
}

.drop-illustration svg {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.drop-file {
  fill: var(--surface);
}

.drop-fold {
  fill: var(--primary-soft);
}

.drop-copy h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.drop-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.drop-actions,
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button-primary {
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 27%, transparent);
  color: #fff;
}

.button-primary:hover {
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-small {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.local-contract {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  padding: 13px 14px;
}

.local-contract svg {
  width: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.local-contract strong,
.local-contract span {
  display: block;
}

.local-contract strong {
  margin-bottom: 2px;
  font-size: 0.8rem;
}

.local-contract span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.status-region {
  min-height: 1.5em;
  margin: 0 38px 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

.results {
  border-top: 1px solid var(--line);
  padding: 30px 38px 38px;
}

.results-heading,
.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.results-heading {
  margin-bottom: 18px;
}

.results-heading h3 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.text-button,
.icon-button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.text-button:hover,
.icon-button:hover {
  color: var(--ink);
}

.empty-results {
  border: 1px dashed var(--line);
  border-radius: var(--radius-small);
  padding: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.results-list {
  display: grid;
  gap: 18px;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--page-soft);
}

.result-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.source-summary,
.result-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.source-summary > div {
  min-width: 0;
}

.source-summary h4 {
  overflow: hidden;
  max-width: 600px;
  margin-bottom: 2px;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.file-chip {
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--accent-soft);
  padding: 4px 7px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.ready-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.ready-badge.is-ready {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}

.ready-badge.needs-review {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-size: 1.4rem;
}

.processing-state,
.error-state {
  padding: 24px 20px;
}

.processing-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.processing-copy span {
  color: var(--muted);
}

progress {
  overflow: hidden;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  accent-color: var(--primary);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--line);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.processing-state p,
.error-state p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.error-state {
  background: var(--danger-soft);
  color: var(--danger);
}

.result-body {
  padding: 20px;
}

.preview-compare {
  display: grid;
  align-items: center;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.preview-compare figure {
  min-width: 0;
  margin: 0;
}

.preview-compare figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.7rem;
}

.preview-compare figcaption b {
  color: var(--ink);
}

.preview-frame {
  display: grid;
  overflow: hidden;
  min-height: 230px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.checkerboard {
  background-color: #eef0f4;
  background-image:
    linear-gradient(45deg, #d9dce2 25%, transparent 25%),
    linear-gradient(-45deg, #d9dce2 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d9dce2 75%),
    linear-gradient(-45deg, transparent 75%, #d9dce2 75%);
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  background-size: 18px 18px;
}

.preview-frame img {
  width: min(100%, 320px);
  height: min(100%, 320px);
  max-height: 300px;
  object-fit: contain;
}

.discord-preview {
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.compare-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.result-metrics {
  display: grid;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-metrics > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.result-metrics > div:nth-child(4) {
  border-right: 0;
}

.result-metrics .metric-detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  border-right: 0;
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.result-metrics strong {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.result-check-layout {
  display: grid;
  align-items: start;
  margin-top: 18px;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 210px;
}

.result-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.readiness-list {
  display: grid;
  margin: 10px 0 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.readiness-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 9px;
  padding: 7px 9px;
}

.readiness-list li > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.readiness-list strong,
.readiness-list small {
  display: block;
}

.readiness-list strong {
  font-size: 0.76rem;
}

.readiness-list small {
  color: var(--muted);
  font-size: 0.67rem;
}

.check-pass {
  background: var(--accent-soft);
}

.check-pass > span {
  background: var(--accent);
  color: #fff;
}

.check-fail {
  background: var(--danger-soft);
}

.check-fail > span {
  background: var(--danger);
  color: #fff;
}

.result-download {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
}

.result-download .button {
  width: 100%;
}

.result-download small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.68rem;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--surface);
}

:root[data-theme="dark"] .trust-strip {
  background: #0b0c12;
}

.trust-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid p {
  margin: 0;
  color: #c9c5d4;
  font-size: 0.79rem;
  line-height: 1.45;
}

.trust-grid strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.trust-icon {
  color: #72e7d8;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.content-section,
.faq-section {
  padding-block: 110px;
}

.section-intro {
  max-width: 840px;
  margin-bottom: 42px;
}

.section-intro.compact {
  margin-bottom: 30px;
}

.section-intro h2 {
  margin-bottom: 15px;
}

.requirements-layout,
.upload-layout {
  display: grid;
  align-items: start;
  gap: 34px;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
}

.requirements-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.requirements-table th,
.requirements-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.requirements-table thead th {
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.requirements-table tbody th {
  font-size: 0.86rem;
}

.requirements-table td {
  color: var(--muted);
  font-size: 0.82rem;
}

.requirements-table tbody tr:last-child > * {
  border-bottom: 0;
}

.table-pass {
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 4px 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.source-note {
  display: flex;
  gap: 15px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: var(--radius);
  background: var(--primary-soft);
  padding: 24px;
}

.source-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.source-note h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
}

.source-note p {
  color: var(--muted);
  font-size: 0.82rem;
}

.source-note a {
  display: block;
  margin-top: 7px;
  font-size: 0.76rem;
  font-weight: 800;
}

.content-band {
  border-block: 1px solid var(--line);
  background: var(--page-soft);
  padding-block: 96px;
}

.process-grid,
.problem-grid {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.process-grid li,
.problem-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 23px;
  box-shadow: var(--shadow-small);
}

.process-grid li > span,
.problem-grid article > span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 950;
}

.process-grid h3,
.problem-grid h3 {
  margin: 17px 0 9px;
  font-size: 1.04rem;
  line-height: 1.3;
}

.process-grid p,
.problem-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.upload-guide h2 {
  margin-bottom: 15px;
}

.upload-guide p {
  color: var(--muted);
}

.independence-note {
  border-left: 3px solid var(--coral);
  padding-left: 13px;
  font-size: 0.8rem;
}

.upload-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.upload-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 13px 15px;
}

.upload-steps span {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 950;
}

.upload-steps b {
  font-size: 0.85rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 21px;
  font-weight: 850;
}

.faq-list summary::marker {
  color: var(--primary);
}

.faq-list p {
  max-width: 880px;
  margin: -4px 21px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feedback-cta {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--primary) 14%, var(--page-soft)), color-mix(in srgb, var(--accent) 11%, var(--page-soft)));
  padding-block: 55px;
}

.feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.feedback-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.feedback-inner p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  background: #11121a;
  padding-block: 58px 22px;
  color: #c8c6d0;
}

.footer-grid {
  display: grid;
  align-items: start;
  padding-bottom: 40px;
  gap: 34px;
  grid-template-columns: 1.4fr 0.7fr 1fr;
}

.site-footer .brand {
  color: #fff;
}

.footer-brand p {
  max-width: 330px;
  margin: 15px 0 0;
  color: #aaa7b5;
  font-size: 0.83rem;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: #d7d4e0;
  font-size: 0.82rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact span {
  color: #777482;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #2d2e39;
  padding-top: 20px;
  color: #888591;
  font-size: 0.7rem;
}

.compact-footer {
  padding-top: 22px;
}

.compact-footer .footer-bottom {
  align-items: center;
}

.compact-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-main,
.feedback-main {
  padding-block: 82px 110px;
}

.legal-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.legal-heading h1,
.feedback-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.legal-heading p,
.feedback-copy > p {
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 40px;
  grid-template-columns: 250px minmax(0, 760px);
}

.legal-summary {
  position: sticky;
  top: 105px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-small);
}

.legal-summary p {
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-summary a {
  font-size: 0.78rem;
  font-weight: 850;
}

.legal-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  padding: clamp(24px, 5vw, 50px);
  box-shadow: var(--shadow);
}

.legal-copy h2 {
  margin: 36px 0 12px;
  font-size: 1.45rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 0.91rem;
}

.feedback-main {
  display: grid;
  align-items: start;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
}

.support-cards {
  display: grid;
  margin: 34px 0;
  gap: 10px;
}

.support-cards > div {
  display: grid;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  gap: 12px;
  grid-template-columns: 72px 1fr;
}

.support-cards span {
  border-radius: 7px;
  background: var(--primary-soft);
  padding: 4px 7px;
  color: var(--primary);
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
}

.support-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.direct-email {
  font-size: 0.84rem !important;
}

.feedback-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.feedback-form-card > p {
  color: var(--muted);
  font-size: 0.86rem;
}

.feedback-form-card form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.feedback-form-card label small {
  color: var(--muted);
  font-weight: 500;
}

.feedback-form-card form > small {
  color: var(--muted);
  font-size: 0.69rem;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.not-found {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 50px;
  text-align: center;
}

.not-found .brand {
  position: absolute;
  top: 28px;
}

.not-found-sticker {
  display: grid;
  width: 190px;
  height: 190px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 48px 72px 48px 48px;
  background: linear-gradient(145deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.not-found-sticker span {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 950;
}

.not-found h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.78rem;
  }

  .theme-label {
    display: none;
  }

  .hero {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  }

  .hero-visual {
    transform: scale(0.9);
  }

  .quick-controls {
    grid-template-columns: 1fr;
  }

  .drop-zone {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .local-contract {
    grid-column: 1 / -1;
  }

  .process-grid,
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 58px 45px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero-visual {
    width: min(100%, 430px);
    min-height: 345px;
    margin-inline: auto;
  }

  .hero-visual::before {
    width: 330px;
    height: 330px;
  }

  .tool-section {
    padding-bottom: 70px;
  }

  .tool-heading {
    flex-direction: column;
    padding: 30px 22px 22px;
  }

  .spec-pills {
    justify-content: flex-start;
  }

  .quick-controls {
    padding: 20px 22px;
  }

  .drop-zone {
    margin: 22px;
    padding: 28px 22px;
    text-align: center;
    grid-template-columns: 1fr;
  }

  .drop-illustration {
    margin-inline: auto;
  }

  .drop-actions {
    justify-content: center;
  }

  .local-contract {
    text-align: left;
  }

  .status-region {
    margin-inline: 22px;
  }

  .results {
    padding: 25px 22px 28px;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-frame {
    min-height: 190px;
  }

  .result-check-layout {
    grid-template-columns: 1fr;
  }

  .result-download {
    position: static;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .content-section,
  .faq-section {
    padding-block: 76px;
  }

  .content-band {
    padding-block: 72px;
  }

  .requirements-layout,
  .upload-layout,
  .legal-layout,
  .feedback-main {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .feedback-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .brand span {
    font-size: 0.86rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .theme-choice {
    min-width: 31px;
    min-height: 31px;
    padding: 4px 6px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-proof {
    gap: 7px;
  }

  .hero-proof span {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .hero-visual {
    min-height: 280px;
    transform: none;
  }

  .hero-visual::before {
    width: 260px;
    height: 260px;
  }

  .source-file,
  .ready-sticker {
    width: 126px;
    height: 158px;
    border-radius: 19px 33px 19px 19px;
  }

  .source-file {
    left: 5px;
  }

  .ready-sticker {
    right: 5px;
  }

  .source-file b {
    font-size: 1.6rem;
  }

  .sticker-face {
    width: 62px;
    height: 72px;
  }

  .sticker-face i {
    top: 32px;
    width: 6px;
    height: 6px;
  }

  .sticker-face i:first-child {
    left: 17px;
  }

  .sticker-face i:nth-child(2) {
    right: 17px;
  }

  .sticker-face b {
    bottom: 15px;
    left: 21px;
    width: 21px;
  }

  .compression-track {
    width: 76px;
    gap: 5px;
  }

  .compression-track span {
    width: 10px;
    height: 10px;
  }

  .drop-zone {
    margin-inline: 14px;
    padding-inline: 15px;
  }

  .quick-controls {
    padding-inline: 15px;
  }

  .advanced-grid {
    grid-template-columns: 1fr;
  }

  .drop-actions .button {
    width: 100%;
  }

  .status-region {
    margin-inline: 15px;
  }

  .results {
    padding-inline: 15px;
  }

  .result-card-header {
    align-items: flex-start;
  }

  .file-chip {
    display: none;
  }

  .source-summary h4 {
    max-width: 150px;
  }

  .ready-badge {
    white-space: normal;
    text-align: center;
  }

  .preview-compare {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    margin-inline: auto;
    transform: rotate(90deg);
  }

  .result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .result-metrics > div:nth-child(3),
  .result-metrics > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .process-grid,
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

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