@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --dark: #0f172a;
  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --green: #0d9488;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p,
a,
button,
span,
td,
th {
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.header-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.header-nav a {
  position: relative;
  padding: 8px 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease-out;
}

.header-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Actions & Links */
.header-action,
.primary-link,
.secondary-link,
.report-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-action,
.primary-link,
.report-cta {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.header-action:hover,
.primary-link:hover,
.report-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  opacity: 0.95;
}

.secondary-link {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.secondary-link:hover {
  border-color: #cbd5e1;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

/* Heroes */
.tool-hero,
.page-hero {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) 40px 40px;
}

.page-hero.narrow {
  max-width: 960px;
}

.tool-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  align-items: flex-start;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 900px;
  margin: 8px 0 0;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.1;
  color: var(--ink);
}

.tool-copy h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  margin-top: 4px;
}

.hero-copy {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-start;
}

/* Main Workspace */
.tool-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.uploader,
.viewer-shell,
.report-shell,
.feature-grid article {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Uploader */
.uploader {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding: 24px;
  height: 100%;
}

.uploader.is-dragging {
  border-color: #2563eb;
  background: #eff6ff;
  transform: scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
}

.uploader input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 240px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(13, 148, 136, 0.02));
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-label:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(13, 148, 136, 0.04));
}

.upload-label span {
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.upload-label strong {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.uploader p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* 3D Viewer Shell */
.viewer-shell {
  position: relative;
  height: min(58vh, 600px);
  min-height: 440px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.viewer-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.viewer-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}

.viewer-empty .empty-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  opacity: 0.85;
  animation: empty-pulse-glow 3s infinite ease-in-out;
}

@keyframes empty-pulse-glow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0px rgba(37, 99, 235, 0));
  }
  50% {
    transform: translateY(-6px) scale(1.05);
    filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.25));
  }
}

.viewer-shell.has-model .viewer-empty {
  display: none;
}

/* Floating Viewport Controls */
.viewer-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.control-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-btn:hover {
  transform: scale(1.05);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--blue);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.control-btn.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Report Panel */
.report-shell {
  grid-column: 1 / -1;
  padding: 32px;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.report-head h2,
.section-head h2,
.feature-grid h2,
.feature-grid h3,
.text-page h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

.report-head h2 {
  max-width: 800px;
  font-size: clamp(20px, 1.8vw, 26px);
  word-break: normal;
}

.report-subtitle {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.report-cta {
  flex: 0 0 auto;
  font-size: 14px;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat {
  min-height: 80px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s ease;
}

.stat:hover {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.2;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}

/* Readiness Panel */
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.readiness {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
}

.readiness-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
}

.readiness-top span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.score-bar {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 4px;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 4px;
}

.readiness.warn .score-bar span {
  background: var(--amber);
}

.readiness.risk .score-bar span {
  background: var(--red);
}

/* Issue List */
.issue-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.issue {
  border-left: 4px solid var(--blue);
  background: #eff6ff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}

.issue.warn {
  border-color: var(--amber);
  background: #fffbeb;
}

.issue.risk {
  border-color: var(--red);
  background: #fef2f2;
}

.issue.good {
  border-color: var(--green);
  background: #f0fdf4;
}

/* Content Bands & Features */
.content-band {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 48px 40px 72px;
}

.content-band.compact {
  padding-top: 16px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 6px;
}

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

.feature-grid article {
  padding: 32px;
}

.feature-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-grid p,
.text-page p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Tool Directory & Tables */
.directory-head {
  margin-bottom: 24px;
}

.directory-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.directory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.filter-chip.is-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.tool-list {
  display: grid;
  gap: 20px;
}

.tool-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tool-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-row:hover::before {
  opacity: 1;
}

.tool-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.12);
}

.tool-logo {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transition: all 0.3s ease;
  overflow: hidden;
}

.tool-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.tool-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-row:nth-child(2n) .tool-logo {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.tool-row:nth-child(3n) .tool-logo {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

.tool-row:hover .tool-logo {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.2);
}

.tool-main {
  min-width: 0;
}

.tool-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.tool-main h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.tool-main p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

.tool-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-status-badges {
  display: flex;
  gap: 6px;
}

.badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.badge-api {
  background: #eff6ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.12);
}

.badge-free {
  background: #ecfdf5;
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.12);
}

.tool-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 5px 10px;
  transition: all 0.2s ease;
}

.tag-chip.tag-input {
  background: #eff6ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.08);
}

.tag-chip.tag-input:hover {
  background: #dbeafe;
}

.tag-chip.tag-format {
  background: #f8fafc;
  color: var(--muted);
  border-color: rgba(15, 23, 42, 0.05);
}

.tag-chip.tag-format:hover {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--ink);
  background: #f1f5f9;
}

.tool-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.03);
  transition: all 0.25s ease;
}

.tool-link::after {
  content: ' →';
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.tool-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tool-link:hover::after {
  transform: translateX(3px);
}

/* FAQ Technical Accordion */
.faq-section {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 48px;
}

.faq-title {
  font-size: clamp(24px, 2.5vw, 32px);
  margin-bottom: 28px;
  text-align: center;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item-content {
  padding: 0 24px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.faq-item-content p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

.faq-item-content p:first-child {
  margin-top: 14px;
}

.faq-item-content code {
  font-family: Consolas, monospace;
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #c94a3a;
}

/* Text Pages */
.text-page {
  max-width: 920px;
}

.text-page h2 {
  margin-top: 36px;
}

/* Site Footer */
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 48px 40px;
  color: var(--muted);
  background: #fff;
  margin-top: 80px;
}

.site-footer p {
  max-width: 520px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-brand {
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
  font-size: 14px;
}

/* Responsive Overrides */
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 16px;
  }

  .header-action {
    position: absolute;
    top: 14px;
    right: 24px;
  }

  .tool-hero,
  .page-hero,
  .content-band {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .uploader {
    min-height: auto;
    position: static;
  }

  .viewer-shell {
    min-height: 380px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .tool-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }

  .tool-title-line {
    flex-direction: column;
    gap: 8px;
  }

  .tool-status {
    justify-content: flex-start;
  }

  .tool-link {
    grid-column: 2;
    justify-self: flex-start;
    width: auto;
  }

  .readiness-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-head,
  .site-footer {
    flex-direction: column;
    gap: 20px;
  }

  /* .tool-copy layout optimized */
}

@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .upload-label {
    min-height: 200px;
  }

  .tool-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tool-logo {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .tool-link {
    grid-column: auto;
    width: 100%;
  }
}
