:root {
  color-scheme: light;
  --bg: #ffffff;
  --blue: #3f5bf6;
  --blue-dark: #1834d8;
  --blue-soft: #eef1ff;
  --blue-line: #cbd3ff;
  --green: #168f6a;
  --green-soft: #e8f8f2;
  --amber: #b56b12;
  --amber-soft: #fff3d8;
  --ink: #17214a;
  --muted: #6875aa;
  --surface: #ffffff;
  --line: #dfe4ff;
  --shadow: 0 22px 54px rgba(63, 91, 246, 0.14);
  --shadow-strong: 0 28px 80px rgba(63, 91, 246, 0.2);
  --radius: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
.pick-pill:focus-visible,
.paste-shortcut:focus-visible,
.drop-zone:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(63, 91, 246, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: var(--radius);
  background: var(--blue);
  color: #ffffff;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid #edf0ff;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #3f5bf6 0%, #6780ff 100%);
  box-shadow: 0 12px 28px rgba(63, 91, 246, 0.2);
}

.brand-mark-inner {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 3px solid #ffffff;
  border-radius: 3px;
}

.brand-mark-inner::before,
.brand-mark-inner::after {
  content: "";
  position: absolute;
  border: 3px solid #ffffff;
  border-radius: 3px;
  background: transparent;
}

.brand-mark-inner::before {
  width: 8px;
  height: 8px;
  right: -7px;
  bottom: -7px;
}

.brand-mark-inner::after {
  width: 3px;
  height: 3px;
  left: 4px;
  top: 4px;
  border-width: 0;
  background: #ffffff;
}

.footer .brand-mark {
  background: #ffffff;
  box-shadow: none;
}

.footer .brand-mark-inner,
.footer .brand-mark-inner::before {
  border-color: var(--blue);
}

.footer .brand-mark-inner::after {
  background: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4.2rem) 1.25rem clamp(3rem, 6vw, 5.5rem);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -40px -80px 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image:
    linear-gradient(rgba(63, 91, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 91, 246, 0.1) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

.hero-section.has-grid-canvas::before {
  opacity: 0;
}

.hero-grid-canvas {
  position: absolute;
  inset: -40px -80px 0;
  z-index: 0;
  width: calc(100% + 160px);
  height: calc(100% + 40px);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0 auto;
  color: var(--blue);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  margin: 1.7rem auto 0;
  color: var(--blue);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 650;
}

.tool-stage {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.drop-zone {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 255px;
  border: 4px dashed var(--blue);
  border-radius: 22px;
  background: #ffffff;
  padding: clamp(1.1rem, 3vw, 2rem);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.drop-zone > * {
  position: relative;
  z-index: 1;
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  background: #fbfcff;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.drop-zone.is-dragging {
  border-color: var(--blue-dark);
  background: var(--blue-soft);
}

.upload-empty,
.upload-preview {
  display: grid;
  min-height: 205px;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.upload-empty {
  grid-template-columns: 250px minmax(0, 1fr);
}

.upload-illustration {
  width: min(250px, 100%);
  filter: drop-shadow(0 18px 30px rgba(63, 91, 246, 0.17));
}

.upload-empty h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-style: italic;
  font-weight: 950;
  line-height: 1.05;
}

.upload-empty p,
.status-line,
.file-details,
.file-note,
.section-heading p,
.process-item p,
.use-card p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.upload-empty p {
  max-width: 31rem;
  margin: 0.8rem 0 0;
  color: var(--blue);
  font-weight: 650;
}

.upload-preview {
  grid-template-columns: 150px minmax(0, 1fr);
  text-align: left;
}

.upload-preview img {
  width: 150px;
  height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 15px 34px rgba(63, 91, 246, 0.15);
}

.preview-copy {
  min-width: 0;
}

.file-name {
  display: block;
  color: var(--blue);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
}

.file-note {
  display: block;
  margin-top: 0.55rem;
  font-weight: 650;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  color: #a3acef;
  font-size: 1rem;
  font-weight: 900;
}

.pick-pill,
.paste-shortcut,
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 18px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(63, 91, 246, 0.22);
}

.pick-pill {
  border: 0;
  padding: 0 1.65rem;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.pick-pill:hover,
.paste-shortcut:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 36px rgba(63, 91, 246, 0.28);
  transform: translateY(-1px);
}

.paste-shortcut {
  gap: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  cursor: pointer;
  user-select: none;
}

.paste-shortcut:hover {
  background: transparent;
  box-shadow: none;
}

kbd {
  min-width: 58px;
  border: 0;
  padding: 0 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
}

.status-line {
  min-height: 24px;
  margin: 1rem auto 0;
  text-align: center;
  font-weight: 700;
}

.status-line[data-tone="success"] {
  color: #1b8c64;
}

.status-line[data-tone="error"] {
  color: #c64545;
}

.is-hidden {
  display: none !important;
}

.result-dashboard {
  margin-top: clamp(2.1rem, 5vw, 4.2rem);
  color: var(--blue);
}

.report-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.file-summary {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 1.35rem;
}

.file-summary img {
  width: 108px;
  height: 108px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 20px 34px rgba(63, 91, 246, 0.18);
}

.file-kicker {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-summary h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  font-weight: 950;
  line-height: 1;
}

.file-details {
  margin: 0.45rem 0 0;
  color: var(--blue);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 800;
}

.file-details strong {
  font-weight: 950;
}

.target-panel {
  justify-self: end;
  width: min(370px, 100%);
}

.target-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.target-heading span,
.report-heading span,
.dpi-input-wrap span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.target-heading strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.1rem;
}

.dpi-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 3px solid var(--blue-line);
  border-radius: 999px;
  background: #ffffff;
}

.dpi-preset {
  min-height: 50px;
  border: 0;
  border-right: 1px solid var(--blue-line);
  background: #ffffff;
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 950;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dpi-preset:last-child {
  border-right: 0;
}

.dpi-preset:hover {
  background: var(--blue-soft);
}

.dpi-preset.is-active {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(63, 91, 246, 0.25);
}

.dpi-input-wrap {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.dpi-input-wrap input {
  width: 100%;
  min-height: 46px;
  border: 2px solid var(--blue-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-weight: 950;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
}

.report-stat {
  display: grid;
  align-content: start;
  gap: 0.34rem;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--blue);
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(63, 91, 246, 0.08);
}

.report-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-stat strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  line-height: 1.1;
}

.report-stat small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.report-stat-accent {
  border-color: rgba(22, 143, 106, 0.3);
  background: var(--green-soft);
}

.report-stat-accent strong {
  color: var(--green);
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.chart-panel,
.table-panel {
  min-width: 0;
}

.report-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.report-heading strong {
  font-size: 0.95rem;
  font-weight: 950;
}

.print-chart {
  display: grid;
  gap: 0.55rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 132px;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  color: var(--blue);
  font-weight: 850;
}

.chart-row span,
.chart-row strong {
  font-family: var(--mono);
  font-size: 0.87rem;
}

.chart-row strong {
  text-align: right;
}

.bar-track {
  height: 15px;
  border-radius: 999px;
  background: var(--blue-soft);
  overflow: hidden;
}

.bar-track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 300ms ease;
}

.chart-row-active {
  min-height: 48px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  padding: 0 0.6rem;
  box-shadow: var(--shadow);
}

.chart-row-active .bar-track {
  background: rgba(255, 255, 255, 0.22);
}

.chart-row-active .bar-track i {
  background: #ffffff;
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
}

.conversion-table th,
.conversion-table td {
  padding: 0.82rem 0.9rem;
  text-align: left;
}

.conversion-table thead th {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.conversion-table tbody tr {
  background: #f3f5ff;
}

.conversion-table tbody tr:nth-child(2n) {
  background: #ffffff;
}

.conversion-table tbody tr:first-child {
  background: var(--blue);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.conversion-table tbody tr:first-child td:first-child {
  border-radius: 8px 0 0 8px;
}

.conversion-table tbody tr:first-child td:last-child {
  border-radius: 0 8px 8px 0;
}

.truth-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 800;
}

.truth-note strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blue-soft);
  padding: 0.42rem 0.7rem;
}

.turnstile-panel {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-top: clamp(1.7rem, 4vw, 2.5rem);
}

.turnstile-panel[hidden] {
  display: none;
}

#turnstileWidget {
  width: min(100%, 320px);
  min-height: 65px;
}

.action-row {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(2rem, 5vw, 3.3rem);
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 2.1rem;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button {
  min-width: 210px;
  border: 0;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(63, 91, 246, 0.25);
}

.primary-button:not(:disabled):hover,
.ghost-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ghost-button {
  border: 2px solid var(--blue);
  background: #ffffff;
  color: var(--blue);
}

.content-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
}

.process-section {
  background: var(--blue-soft);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-heading.centered {
  max-width: none;
  margin-bottom: clamp(2.4rem, 5vw, 4.2rem);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--blue);
  font-weight: 650;
}

.step-grid,
.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.process-item {
  color: var(--blue);
  text-align: center;
}

.process-item img,
.use-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.process-item h3,
.use-card h3 {
  margin: 1rem 0 0;
  color: var(--blue);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-style: italic;
  font-weight: 950;
}

.process-item p {
  max-width: 260px;
  margin: 1.25rem auto 0;
  color: var(--blue);
  font-weight: 650;
}

.use-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(63, 91, 246, 0.08);
  padding: 1.2rem;
}

.use-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.size-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(63, 91, 246, 0.08);
}

.size-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--blue);
  font-size: 0.96rem;
  font-weight: 800;
}

.size-table th,
.size-table td {
  padding: 1rem 1.1rem;
  text-align: left;
}

.size-table th {
  background: var(--blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.size-table tbody tr:nth-child(2n) {
  background: #f7f8ff;
}

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

.verify-card {
  border: 1px solid rgba(63, 91, 246, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--blue);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: 0 12px 30px rgba(63, 91, 246, 0.08);
}

.verify-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 950;
}

.verify-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(63, 91, 246, 0.06);
}

.faq-list summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}

.faq-list p {
  margin: 0.75rem 0 0;
  max-width: 62rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.8rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  min-height: 38px;
}

.site-footer p {
  margin: 0.45rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  color: var(--blue);
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--blue-dark);
}

.copyright {
  text-align: right;
}

.guide-grid,
.tool-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card,
.tool-link-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 178px;
  border: 1px solid rgba(63, 91, 246, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--blue);
  padding: 1.1rem;
  box-shadow: 0 14px 34px rgba(63, 91, 246, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.guide-card:hover,
.tool-link-card:hover {
  border-color: rgba(63, 91, 246, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card span,
.tool-link-card span,
.article-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card strong,
.tool-link-card strong {
  color: var(--blue);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1.08;
}

.guide-card small,
.tool-link-card small {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 5.2rem) 1.25rem clamp(2.4rem, 5vw, 4rem);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  text-align: left;
}

.page-lede {
  max-width: 690px;
  margin: 1.35rem 0 0;
  color: var(--blue);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  font-weight: 650;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.page-actions .ghost-button {
  min-width: 0;
  box-shadow: none;
}

.page-summary {
  display: grid;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  padding: 1.1rem;
}

.page-summary-icon {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.page-summary strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.page-summary span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem clamp(3.2rem, 7vw, 6rem);
}

.article-layout > * {
  min-width: 0;
}

.page-index {
  position: sticky;
  top: 72px;
  align-self: start;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0.9rem;
  box-shadow: 0 10px 28px rgba(63, 91, 246, 0.06);
}

.page-index span {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-index a {
  border-radius: 6px;
  color: var(--blue);
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.page-index a:hover {
  background: var(--blue-soft);
}

.article-flow {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
  min-width: 0;
}

.article-block {
  min-width: 0;
  border: 1px solid rgba(63, 91, 246, 0.16);
  border-radius: var(--radius);
  background: #ffffff;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  box-shadow: 0 14px 34px rgba(63, 91, 246, 0.07);
}

.article-block h2,
.article-block h3 {
  margin: 0;
  color: var(--blue);
  font-weight: 950;
  line-height: 1.05;
}

.article-block h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
}

.article-block h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.article-block p,
.article-block li {
  color: var(--ink);
  font-weight: 650;
}

.article-block p {
  margin: 0.85rem 0 0;
}

.article-block ul,
.article-block ol {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.article-callout {
  border-color: rgba(22, 143, 106, 0.28);
  background: var(--green-soft);
}

.article-callout h2,
.article-callout strong {
  color: var(--green);
}

.article-warning {
  border-color: rgba(181, 107, 18, 0.26);
  background: var(--amber-soft);
}

.article-warning h2,
.article-warning strong {
  color: var(--amber);
}

.formula-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.formula-card {
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0.9rem;
}

.formula-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formula-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 950;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
}

.article-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-table th,
.article-table td {
  padding: 0.9rem 1rem;
  text-align: left;
}

.article-table th {
  background: var(--blue);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-table tbody tr:nth-child(2n) {
  background: #f7f8ff;
}

.related-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem clamp(3rem, 6vw, 5rem);
}

.related-section .section-heading {
  margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
  .report-top,
  .report-grid,
  .page-hero-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .target-panel {
    justify-self: stretch;
  }

  .page-index {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .upload-empty {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .upload-illustration {
    margin: 0 auto;
  }

  .upload-empty p {
    margin-left: auto;
    margin-right: auto;
  }

  .upload-preview,
  .file-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .upload-preview img,
  .file-summary img {
    margin: 0 auto;
  }

  .chart-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .chart-row strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .conversion-table {
    font-size: 0.84rem;
  }

  .conversion-table th,
  .conversion-table td {
    padding: 0.7rem 0.55rem;
  }

  .step-grid,
  .use-grid,
  .verify-grid,
  .guide-grid,
  .tool-link-grid,
  .formula-strip {
    grid-template-columns: 1fr;
  }

  .report-stats {
    grid-template-columns: 1fr;
  }

  .action-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero-section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 3.3rem);
  }

  .drop-zone {
    min-height: 240px;
    border-width: 3px;
    border-radius: 16px;
  }

  .upload-illustration {
    width: 190px;
  }

  .dpi-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 16px;
  }

  .dpi-preset:nth-child(3) {
    border-right: 0;
  }

  .dpi-preset:nth-child(n + 4) {
    border-top: 1px solid var(--blue-line);
  }

  .truth-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-grid-canvas {
    display: none;
  }

  .hero-section.has-grid-canvas::before {
    opacity: 0.58;
  }
}

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

  .hero-grid-canvas {
    display: none;
  }

  .hero-section.has-grid-canvas::before {
    opacity: 0.58;
  }
}
