:root {
  --bg: #0a1017;
  --panel: #151f2e;
  --panel-soft: #1e2a3a;
  --text: #ebf1ff;
  --muted: #9ab0cc;
  --blue: #30a7f7;
  --green: #23c16f;
  --orange: #f0a23f;
  --red: #ff6464;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, #102039, var(--bg) 55%);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #76d2ff;
  outline-offset: 3px;
}

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

.landing-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px clamp(18px, 3vw, 48px) 36px;
}

.landing-shell > .diag-shared-cta,
.landing-shell > .diag-tool-footer-share {
  width: 100%;
}

.landing-grid {
  display: grid;
  gap: clamp(28px, 2.8vw, 36px);
  align-items: stretch;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
}

.container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin-top: 24px;
}

.landing-copy-card,
.landing-form-card {
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, rgba(23, 52, 89, 0.85), rgba(15, 25, 38, 0.75));
  border: 1px solid #20324a;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.landing-copy-card {
  padding-bottom: clamp(34px, 4vw, 54px);
}

.landing-form-card {
  gap: 12px;
}

.landing-eyebrow {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-title {
  margin: 0;
  font-size: clamp(52px, 6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  word-break: break-word;
  max-width: 14ch;
  overflow-wrap: break-word;
}

.landing-lead {
  margin-top: 18px;
  margin-bottom: 0;
  max-width: 64rem;
  color: #c7d8f0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.diagnosis-form {
  min-width: 0;
  gap: 12px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.diagnosis-label {
  margin: 0;
  color: #d6e4ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.diagnosis-input {
  border: 1px solid #2b3e59;
  border-radius: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 68px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: #0a1624;
}

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

.diagnosis-level-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #2b3e59;
  background: #0d1a2b;
  cursor: pointer;
  font-size: 15px;
  min-height: 120px;
  max-height: 132px;
  line-height: 1.2;
  text-align: center;
}

.diagnosis-level-card > input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.diagnosis-level-card:has(input[type="radio"]:checked) {
  border-color: var(--blue);
  background: #15304d;
}

.diagnosis-level-card > input[type="radio"]:checked + span {
  color: #fff;
  font-weight: 700;
}

.diagnosis-level-card:focus-within {
  outline: 2px solid rgba(48, 167, 247, 0.35);
  outline-offset: 2px;
}

.diagnosis-submit {
  width: 100%;
  height: 76px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  font-size: 1.04rem;
  background: var(--blue);
  color: #061625;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.diagnosis-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.diagnosis-features-grid {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diagnosis-feature-pill {
  border: 1px solid rgba(56, 199, 244, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  color: #c6d8f0;
  background: #0f2134;
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}

.card {
  background: var(--panel);
  border: 1px solid #25354b;
  border-radius: 14px;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.report {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.report h2 {
  margin: 0 0 16px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.report h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.35;
}

.report p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.report p:last-child {
  margin-bottom: 0;
}

.report a:not(.btn-primary):not(.btn-secondary) {
  color: #9ad8ff;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.report ul,
.report ol {
  padding-inline-start: 22px;
}

.report li {
  overflow-wrap: anywhere;
}

.report,
#status-box {
  scroll-margin-top: 20px;
}

.hidden {
  display: none;
}

#report-result[hidden],
#report-result.hidden {
  display: none !important;
}

#status-box {
  border-left-color: var(--blue);
}

#status-box.error {
  border-left-color: var(--red);
  color: #ffdede;
}

#status-box.success {
  border-left-color: var(--green);
}

#status-box {
  border-left: 4px solid var(--blue);
}

.status-card {
  display: block;
}

.analysis-status {
  display: grid;
  gap: 10px;
}

.analysis-status__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.analysis-status__header strong,
.analysis-status__header span,
.analysis-status p {
  overflow-wrap: anywhere;
}

#status-box.snail-status {
  padding-block: 18px;
  background: linear-gradient(120deg, #142339, #111c2c 70%);
}

.snail-loader {
  --snail-size: 136px;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  margin-inline: auto;
}

.snail-loader__progress {
  position: relative;
}

.snail-loader__percent {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #8de8f9;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.snail-loader__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.snail-loader__percent > span:last-child {
  font-size: 15px;
  font-weight: 700;
}

.snail-loader__estimate {
  align-self: center;
  margin-right: 2px;
  font-size: 18px;
  opacity: 0.7;
}

.snail-loader__estimate[hidden] {
  display: none;
}

.snail-loader__scene {
  position: relative;
  height: 160px;
  overflow: hidden;
  isolation: isolate;
}

.snail-loader__ground {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #23485d, #41667b 75%, #2e465b);
}

.snail-loader__route {
  --audit-progress: 0%;
  position: absolute;
  top: 36px;
  right: calc(var(--snail-size) + 6px);
  bottom: 8px;
  left: 32px;
}

.snail-loader__binary {
  position: absolute;
  bottom: 10px;
  left: -32px;
  width: calc(var(--audit-progress) + 44px);
  height: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000);
}

.snail-loader__binary::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #69ddcf);
  opacity: 0.45;
}

.snail-loader__matrix {
  display: grid;
  grid-template-columns: repeat(40, 16px);
  grid-template-rows: repeat(2, 18px);
  grid-auto-flow: column;
  width: 640px;
  height: 36px;
  color: #73eadb;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  user-select: none;
}

.snail-loader__matrix span {
  opacity: 0.65;
  animation: audit-binary-flicker 1.8s steps(2, end) infinite;
  animation-delay: var(--bit-delay, 0s);
}

.snail-loader__matrix span:nth-child(3n) {
  color: #5cbaf7;
}

.snail-loader__traveller {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: var(--audit-progress);
  width: var(--snail-size);
  line-height: 0;
  transition: none;
}

.snail-loader__gait > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.snail-loader__finish {
  position: absolute;
  z-index: 1;
  right: 2px;
  bottom: 14px;
  width: 25px;
  height: 46px;
  opacity: 0.8;
  transform: rotate(5deg);
  transform-origin: bottom center;
}

.snail-loader__done {
  margin: 2px 0 0;
  color: #baf4d5;
  font-size: 16px;
  text-align: center;
}

.snail-loader__done[hidden] {
  display: none;
}

.snail-loader[data-state="success"] .snail-loader__gait,
.snail-loader[data-state="success"] .snail-loader__matrix span {
  animation: none;
}

.snail-loader[data-state="success"] .snail-loader__percent {
  color: #86efac;
}

.snail-loader[data-paused="true"] .snail-loader__gait,
.snail-loader[data-paused="true"] .snail-loader__matrix span,
.snail-loader[data-paused="true"][data-action] .audit-snail__animated {
  animation-play-state: paused;
}

@keyframes audit-binary-flicker {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

.inline-list,
#positive-findings,
#repair-priorities,
#manual-review,
#top-urls {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.inline-list li,
#top-issues li {
  line-height: 1.6;
}

#top-issues {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
}

.issue {
  display: grid;
  gap: 12px;
  border: 1px solid #273b57;
  padding: 18px;
  border-radius: 10px;
  background: var(--panel-soft);
  min-width: 0;
}

.issue h3,
.issue p {
  margin: 0;
}

.issue .meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.issue-url-block {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.issue-url-block p,
.issue-url-note,
.issue-url-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.issue-url-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.issue-url-list li {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.issue-url-list a {
  color: #cfe7ff;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 13px;
  margin-right: 6px;
}

.pill.high { background: rgba(240,162,63,0.2); color: #ffd79c; }
.pill.medium { background: rgba(35,193,111,0.15); color: #7dffb0; }
.pill.low { background: rgba(138,175,255,0.12); color: #b6d2ff; }

.btn-secondary {
  display: inline-block;
  border: 1px solid #2e4967;
  border-radius: 10px;
  color: #c8dcf8;
  background: #162838;
  padding: 10px 12px;
  text-decoration: none;
}

.btn-primary {
  display: inline-block;
  border: 1px solid #2e4967;
  border-radius: 10px;
  color: #0a111f;
  background: #30a7f7;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.details-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #2a3b56;
  padding: 10px 8px;
  font-size: 14px;
  word-break: break-word;
}

th {
  color: #d6e4ff;
  font-weight: 600;
  white-space: nowrap;
}

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

.report .cta-list {
  padding-inline-start: 0;
}

.cta-card p {
  margin-top: 0;
}

.tos-main-service-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: center;
  margin: clamp(24px, 4vw, 42px) 0 0;
  padding: 28px;
  border: 1px solid rgba(76, 128, 180, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 72, 112, 0.82), rgba(14, 26, 40, 0.9)),
    rgba(17, 29, 45, 0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.tos-main-service-cta__content {
  min-width: 0;
}

.tos-main-service-cta__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #7fd5ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tos-main-service-cta h2 {
  margin: 0;
  max-width: 760px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.tos-main-service-cta p {
  margin: 12px 0 0;
  max-width: 820px;
  color: #c8d9ef;
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.tos-main-service-cta__actions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.tos-main-service-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid #2e4967;
  border-radius: 12px;
  color: #d9ebff;
  background: rgba(10, 22, 36, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tos-main-service-cta__button--primary {
  border-color: #30a7f7;
  color: #07111d;
  background: linear-gradient(135deg, #30a7f7, #72ddff);
}

.landing-shell > .tos-main-service-cta + .diag-tool-footer-share {
  margin-top: clamp(24px, 4vw, 42px);
  padding-top: 0;
}

@media (max-width: 1200px) {
  .landing-shell {
    padding: 38px 36px 28px;
  }
}

@media (max-width: 980px) {
  .landing-shell {
    padding: 34px 28px 28px;
  }

  .landing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .landing-title {
    font-size: clamp(42px, 9vw, 58px);
  }

  .diagnosis-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

}

@media (max-width: 720px) {
  .landing-shell {
    padding: 16px 16px 28px;
  }

  .landing-grid {
    gap: 14px;
  }

  .landing-copy-card,
  .landing-form-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .landing-title {
    max-width: none;
    font-size: clamp(30px, 7.5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.025em;
    word-break: normal;
  }

  .landing-eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }

  .landing-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
  }

  .diagnosis-input {
    height: 56px;
    min-height: 56px;
    padding-inline: 14px;
  }

  .diagnosis-submit {
    height: auto;
    min-height: 56px;
    padding: 16px 12px;
    font-size: 17px;
    line-height: 1.4;
  }

  .diagnosis-level-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .diagnosis-level-card {
    min-height: 56px;
    max-height: none;
    padding: 14px 6px;
    font-size: 15px;
    line-height: 1.4;
  }

  .diagnosis-level-card > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .diagnosis-features-grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
    gap: 8px;
  }

  .diagnosis-feature-pill {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    word-break: normal;
  }

  .report {
    gap: 16px;
  }

  .card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .report h2 {
    font-size: 23px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .report h3 {
    font-size: 19px;
  }

  .issue {
    padding: 14px;
  }

  .issue-url-meta {
    display: block;
    margin-top: 4px;
  }

  .analysis-status__header {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .analysis-status p {
    margin: 0;
  }

  .snail-loader {
    --snail-size: 120px;
  }

  .snail-loader__scene {
    height: 146px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-height: 52px;
    padding: 14px;
  }

  .details-table-wrap {
    overflow: visible;
  }

  .technical-table {
    display: block;
    min-width: 0;
    overflow: visible;
  }

  .technical-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .technical-table tbody {
    display: grid;
    gap: 14px;
  }

  .technical-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #344b68;
    border-radius: 12px;
    padding: 6px 12px;
    background: #101c2b;
  }

  .technical-table td {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
    grid-column: 1 / -1;
  }

  .technical-table td:nth-child(3),
  .technical-table td:nth-child(4) {
    grid-column: auto;
    padding-right: 8px;
  }

  .technical-table td::before {
    content: attr(data-label);
    color: #adbed7;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }

  .technical-table td:last-child {
    border-bottom: 0;
  }

  .tos-main-service-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .tos-main-service-cta__actions {
    width: 100%;
  }

  .tos-main-service-cta__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-shell {
    padding-inline: 12px;
  }

  .hero {
    padding: 20px 16px;
  }

  .landing-copy-card,
  .landing-form-card {
    padding: 20px 16px;
  }

  .card {
    padding: 20px 16px;
  }

  .tos-main-service-cta {
    margin-top: 22px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .tos-main-service-cta h2 {
    font-size: 23px;
  }

  .tos-main-service-cta p {
    font-size: 16px;
  }

  .landing-shell > .tos-main-service-cta + .diag-tool-footer-share {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snail-loader__gait,
  .snail-loader__matrix span {
    animation: none;
  }

  .snail-loader__traveller,
  .snail-loader__binary {
    transition: none;
  }
}

.ga-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ga-sticky-nav-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ga-sticky-brand {
  color: #0f172a;
  font-weight: 850;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.ga-sticky-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ga-sticky-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.08);
}

.ga-sticky-link-primary {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.22);
}

.ga-sticky-link:hover,
.ga-sticky-brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .ga-sticky-nav-inner {
    width: calc(100% - 8px);
    padding: 8px 0;
    gap: 8px;
    align-items: stretch;
    flex-direction: column;
  }

  .ga-sticky-brand {
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
  }

  .ga-sticky-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ga-sticky-link {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    font-size: 12px;
  }
}
