:root {
  --bg: #f4f8fc;
  --bg-soft: #eaf2fb;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --primary: #1e6fe8;
  --primary-dark: #0f4fb6;
  --accent: #27c390;
  --card: #ffffff;
  --line: rgba(15, 27, 45, 0.08);
  --shadow: 0 30px 60px rgba(9, 42, 92, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #f9fbff, var(--bg));
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  position: relative;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1160px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 248, 252, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.brand span {
  color: var(--primary);
  margin-left: -3px;
}

.menu {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.menu a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.menu a.active {
  background: rgba(30, 111, 232, 0.18);
  color: var(--ink);
  font-weight: 700;
}

.menu a:hover {
  background: rgba(30, 111, 232, 0.12);
}

.cta {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 111, 232, 0.25);
}

.hero {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(30, 111, 232, 0.25);
  animation: float 10s ease-in-out infinite;
}

.confetti.c1 {
  top: 20%;
  left: 6%;
  background: rgba(39, 195, 144, 0.5);
}

.confetti.c2 {
  top: 35%;
  right: 12%;
}

.confetti.c3 {
  top: 70%;
  left: 12%;
  background: rgba(30, 111, 232, 0.35);
}

.confetti.c4 {
  top: 78%;
  right: 20%;
  background: rgba(39, 195, 144, 0.55);
}

.confetti.c5 {
  top: 50%;
  right: 4%;
  background: rgba(30, 111, 232, 0.4);
}

.confetti.c6 {
  top: 18%;
  left: 40%;
  background: rgba(39, 195, 144, 0.4);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(12deg);
  }
}

.hero-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
  text-align: center;
}

.hero-copy {
  text-align: center;
}

.url-form {
  text-align: left;
}

.hero-copy h1 span {
  color: var(--primary);
}

.brand-gradient {
  background: linear-gradient(90deg, #0f172a 0%, #1e6fe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h2 {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 640px;
  text-align: center;
}

.url-form {
  background: var(--card);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 111, 232, 0.1);
}

.url-form.wide {
  max-width: 720px;
  margin: 0 auto;
}

.url-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.html-row {
  margin-top: 12px;
  margin-bottom: 24px;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 111, 232, 0.16);
  box-shadow: 0 12px 26px rgba(15, 35, 70, 0.08);
}

.html-row.is-hidden {
  display: none;
}

.html-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 111, 232, 0.3);
  font-size: 13px;
  min-height: 120px;
  resize: vertical;
}

.manual-files {
  border: 1px dashed rgba(30, 111, 232, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(241, 246, 255, 0.7);
}

.manual-files summary {
  cursor: pointer;
  font-weight: 400;
  font-size:12px;
  color: var(--ink);
}

.manual-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.manual-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(30, 111, 232, 0.25);
  font-size: 13px;
  min-height: 90px;
  resize: vertical;
}

.html-actions {
  display: flex;
  justify-content: flex-end;
}

.html-actions button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.type-row {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.type-row.is-hidden {
  display: none;
}

.type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.type-row select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 111, 232, 0.3);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.input-row input {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(30, 111, 232, 0.3);
  font-size: 14px;
}

.action-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero .action-row {
  justify-content: center;
}

.action-row button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.info {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(30, 111, 232, 0.3);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
}

.stats {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stats strong {
  font-size: 20px;
}

.stats span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.screen {
  background: #0f2b52;
  color: #fff;
  border-radius: 26px;
  padding: 24px;
  width: min(420px, 90%);
  box-shadow: var(--shadow);
  border: 6px solid rgba(255, 255, 255, 0.12);
}

.screen-top {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.screen-top span {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.screen-body {
  display: grid;
  gap: 20px;
}

.score {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #f7c84a;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.tag.warn {
  background: rgba(255, 93, 93, 0.7);
}

.tag.info {
  background: rgba(247, 200, 74, 0.9);
  color: #1c2433;
}

.tag.ok {
  background: rgba(39, 195, 144, 0.8);
}

.features {
  padding: 50px 0 75px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.checks {
  padding: 70px 0 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f6f9fe 0%, #f4f8fc 100%);
}

.checks.is-hidden {
  display: none;
}

.checks-header {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.checks-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
}

.checks-help {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(30, 111, 232, 0.35);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.checks-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid rgba(30, 111, 232, 0.18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.08);
}

.check-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(30, 111, 232, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.08);
}

.checks-overview-card {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(30, 111, 232, 0.16);
  box-shadow: 0 12px 26px rgba(15, 35, 70, 0.08);
  margin-bottom: 18px;
}

.overview-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.overview-list li {
  font-size: 13px;
  color: var(--ink);
  background: rgba(224, 88, 88, 0.08);
  border: 1px solid rgba(224, 88, 88, 0.22);
  padding: 8px 10px;
  border-radius: 10px;
}

.overview-list li.is-empty {
  background: rgba(15, 27, 45, 0.04);
  border-color: rgba(15, 27, 45, 0.08);
  color: var(--muted);
}

.overview-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.overview-ring {
  --ok: 0;
  --warn: 0;
  --bad: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    #49b46f 0 calc(var(--ok) * 1%),
    #f0b429 calc(var(--ok) * 1%) calc((var(--ok) + var(--warn)) * 1%),
    #e05858 calc((var(--ok) + var(--warn)) * 1%) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.08);
}

.overview-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.overview-percent {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.overview-counts {
  font-size: 12px;
  color: var(--muted);
}

.overview-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.check-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(30, 111, 232, 0.12);
  background: linear-gradient(180deg, rgba(30, 111, 232, 0.05), rgba(39, 195, 144, 0.05));
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.check-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 111, 232, 0.25);
  box-shadow: 0 10px 18px rgba(15, 35, 70, 0.12);
}

.summary-ring {
  --ok: 0;
  --warn: 0;
  --bad: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    #49b46f 0 calc(var(--ok) * 1%),
    #f0b429 calc(var(--ok) * 1%) calc((var(--ok) + var(--warn)) * 1%),
    #e05858 calc((var(--ok) + var(--warn)) * 1%) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(15, 27, 45, 0.08);
}

.summary-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff;
}

.summary-percent {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}

.summary-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.check-tab {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 111, 232, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.check-tab:hover {
  transform: translateY(-1px);
  background: rgba(30, 111, 232, 0.16);
}

.check-panel {
  margin-top: 28px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(30, 111, 232, 0.18);
  box-shadow: 0 12px 26px rgba(15, 35, 70, 0.08);
  overflow: hidden;
  position: relative;
  scroll-margin-top: 120px;
}

.check-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #49b46f;
}

.check-panel.status-warn::before {
  background: #f0b429;
}

.check-panel.status-bad::before {
  background: #e05858;
}

.check-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.check-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-panel-name {
  color: var(--ink);
}

.check-panel-learn {
  background: transparent;
  border: 1px solid rgba(30, 111, 232, 0.3);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.check-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.check-panel-score {
  font-weight: 600;
  color: var(--ink);
}

.check-panel-body {
  padding: 16px 22px 20px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  background: #fbfdff;
  font-size: 14px;
  color: var(--ink);
  flex-wrap: wrap;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.check-item.static {
  cursor: default;
}

.check-item.is-hidden {
  display: none;
}

.check-item.ok {
  border-color: rgba(73, 180, 111, 0.3);
}

.check-item.warn {
  border-color: rgba(240, 180, 41, 0.35);
}

.check-item.bad {
  border-color: rgba(224, 88, 88, 0.35);
}

.check-text {
  flex: 1 1 240px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.check-detail {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.check-reason {
  width: 100%;
  padding-left: 30px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  display: none;
  overflow-wrap: anywhere;
}

.heading-outline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-left: 2px solid rgba(30, 111, 232, 0.12);
}

.heading-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0 4px 12px;
  font-size: 12px;
  color: var(--ink);
}

.heading-item .heading-number {
  min-width: 48px;
  color: var(--primary-dark);
  font-weight: 600;
}

.heading-item .heading-title {
  color: var(--muted);
}

.heading-item.jump {
  background: rgba(224, 88, 88, 0.1);
  border-radius: 8px;
  padding-left: 10px;
}

.heading-item.jump .heading-number {
  color: #b83a3a;
}

.heading-item[data-level="1"] {
  padding-left: 8px;
}

.heading-item[data-level="2"] {
  padding-left: 20px;
}

.heading-item[data-level="3"] {
  padding-left: 32px;
}

.heading-item[data-level="4"] {
  padding-left: 44px;
}

.heading-item[data-level="5"] {
  padding-left: 56px;
}

.heading-item[data-level="6"] {
  padding-left: 68px;
}

.heading-item.more {
  color: var(--muted);
}

.check-pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 27, 45, 0.04);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.check-guidance {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 111, 232, 0.08);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.check-guidance a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.check-item.expanded {
  box-shadow: 0 8px 18px rgba(15, 35, 70, 0.08);
}

.check-item.expanded .check-reason {
  display: block;
  cursor: help;
}

.check-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(73, 180, 111, 0.15);
  color: #2b7a48;
  font-size: 12px;
  font-weight: 700;
}

.check-item.warn .check-icon {
  background: rgba(240, 180, 41, 0.2);
  color: #8a5b00;
}

.check-item.bad .check-icon {
  background: rgba(224, 88, 88, 0.2);
  color: #a33d3d;
}

@media (max-width: 720px) {
  .check-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .check-text {
    flex-basis: 100%;
  }

  .check-detail {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }
}

.results {
  padding: 90px 0 110px;
  display: none;
}

.results.active {
  display: block;
}

.results .section-head {
  margin-bottom: 40px;
}

.result-message {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(30, 111, 232, 0.08);
  color: var(--primary-dark);
  margin-bottom: 26px;
  font-size: 14px;
}

.progress-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 111, 232, 0.16);
  box-shadow: 0 10px 22px rgba(15, 35, 70, 0.08);
  margin-bottom: 24px;
  display: none;
}

.progress-card.active {
  display: block;
}

.game-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(30, 111, 232, 0.16);
  box-shadow: 0 12px 26px rgba(15, 35, 70, 0.08);
  margin-bottom: 24px;
  display: none;
}

.game-card.active {
  display: block;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.game-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.game-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.game-score {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.game-canvas-wrap {
  background: linear-gradient(180deg, rgba(30, 111, 232, 0.08), rgba(39, 195, 144, 0.08));
  border-radius: 12px;
  padding: 10px;
  position: relative;
}

.game-canvas {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 10px;
  background: #f7fbff;
}

.game-overlay {
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  background: rgba(15, 27, 45, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
  z-index: 2;
}

.game-card.active + .result-card {
  margin-top: 0;
}

.game-card .game-canvas {
  cursor: pointer;
}

.game-card .game-canvas:active {
  cursor: pointer;
}

@media (max-width: 720px) {
  .game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-canvas {
    height: 220px;
  }
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.progress-title {
  font-weight: 600;
  color: var(--ink);
}

.progress-bar {
  height: 8px;
  background: rgba(30, 111, 232, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  display: block;
  width: 0%;
  background: linear-gradient(90deg, #1e6fe8, #27c390);
  transition: width 0.3s ease;
}

.redirect-chain {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.redirect-chain span {
  display: inline-block;
  margin-right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 27, 45, 0.06);
}

.redirect-chain .redirect-pill {
  margin-right: 0;
}

.redirect-chain .redirect-arrow {
  margin: 0 10px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.result-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(30, 111, 232, 0.12);
  box-shadow: 0 18px 40px rgba(15, 35, 70, 0.12);
  overflow: hidden;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #f7fbff;
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.result-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-body {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(220px, 280px) 1fr;
  padding: 22px;
}

.preview-box {
  background: linear-gradient(145deg, #eaf2fb, #ffffff);
  border-radius: 14px;
  border: 1px solid rgba(30, 111, 232, 0.12);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
}

.preview-favicon {
  width: auto;
  height: 80%;
  max-height: 110px;
  max-width: 70%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 27, 45, 0.08);
  padding: 8px;
}

.preview-image {
  width: auto;
  height: 80%;
  max-height: 110px;
  max-width: 80%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 45, 0.08);
  background: #fff;
  display: none;
}

.meta-block {
  display: grid;
  gap: 16px;
}

.meta-item {
  display: grid;
  gap: 6px;
}

.meta-label {
  font-size: 13px;
  color: var(--muted);
}

.meta-value {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.meta-link {
  color: var(--primary-dark);
  font-weight: 600;
  word-break: break-word;
  text-transform: none;
}

.meta-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
}

.result-divider {
  height: 1px;
  background: rgba(15, 27, 45, 0.08);
}

.result-footer {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  padding: 18px 22px 24px;
}

.result-tags {
  display: grid;
  gap: 12px;
}

.tag-row,
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row .pill + .pill {
  margin-left: 8px;
}

.tag-row .pill.follow {
  margin-left: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(39, 195, 144, 0.2);
  color: #0c6248;
  font-size: 13px;
  font-weight: 600;
}

.pill.warn {
  background: rgba(247, 200, 74, 0.25);
  color: #8a5b00;
}

.pill.bad {
  background: rgba(255, 93, 93, 0.18);
  color: #b83a3a;
}

.pill.neutral {
  background: rgba(15, 27, 45, 0.08);
  color: var(--muted);
}

.result-stats {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .result-body {
    grid-template-columns: 1fr;
  }

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

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

  .checks-overview-card {
    grid-template-columns: 1fr;
  }

  .overview-center {
    order: -1;
  }
}

@media (max-width: 600px) {
  .check-summary-grid {
    grid-template-columns: 1fr;
  }
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: var(--card);
  padding: 26px;
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(20, 53, 98, 0.12);
  border: 1px solid rgba(30, 111, 232, 0.12);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.content-section .section-lead {
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.seo-context {
  padding: 50px 0 60px;
}

.seo-context .content-stack {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.9));
  border-radius: 22px;
  border: 1px solid rgba(30, 111, 232, 0.12);
  box-shadow: 0 18px 38px rgba(20, 53, 98, 0.12);
  text-align: center;
}

.seo-context .content-stack p {
  color: var(--muted);
}

.seo-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.seo-context-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 111, 232, 0.12);
}

.seo-context-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink);
}

.seo-context-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .seo-context-grid {
    grid-template-columns: 1fr;
  }
}

.how-it-works {
  padding: 40px 0 60px;
}

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

.how-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(30, 111, 232, 0.12);
  box-shadow: 0 12px 24px rgba(20, 53, 98, 0.08);
}

.how-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 111, 232, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 10px;
}

.how-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.how-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

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

.content-stack ul {
  margin: 0;
  padding-left: 18px;
}

.content-stack li {
  margin: 4px 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: grid;
  gap: 8px;
}

.toc-list li {
  counter-increment: toc;
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 600;
}

.toc-list li::before {
  content: counter(toc) ".";
  color: var(--primary);
  font-weight: 700;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  margin-top: 20xp;
  overflow: hidden;
  border: 1px solid rgba(30, 111, 232, 0.14);
}

.content-table th,
.content-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
  font-size: 14px;
}

.content-table th {
  background: #f6f9fe;
  font-weight: 600;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.rating-table {
  table-layout: fixed;
}

.rating-table th:last-child,
.rating-table td:last-child {
  width: 130px;
  text-align: center;
}

.rating-table th:last-child .status-tag,
.rating-table td:last-child .status-tag {
  margin: 0 auto;
}

.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-ok {
  background: rgba(39, 195, 144, 0.18);
  color: #0c6248;
}

.status-warn {
  background: rgba(247, 200, 74, 0.2);
  color: #6b4a00;
}

.status-bad {
  background: rgba(224, 88, 88, 0.18);
  color: #8a1f1f;
}

.code-block {
  background: #0f1b2d;
  color: #e6eefb;
  padding: 14px 16px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .content-section h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .hero-copy h2 {
    font-size: 1.05rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .content-table {
    display: block;
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .content-table th,
  .content-table td {
    font-size: 13px;
    padding: 10px 12px;
    white-space: normal;
    word-break: break-word;
  }

  .toc-list li {
    font-size: 14px;
  }
}

.resources-checks .feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resources-checks .feature-card .ghost {
  align-self: flex-start;
  margin-top: auto;
}

.resources {
  padding: 100px 0 120px;
}

.resources-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.resource-copy h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.resource-copy p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(30, 111, 232, 0.4);
  padding: 12px 20px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
}

.ghost.is-disabled {
  color: var(--muted);
  border-color: rgba(15, 27, 45, 0.18);
  pointer-events: none;
  cursor: default;
}

.resource-list {
  display: grid;
  gap: 16px;
}

.resource-item {
  background: #0f2b52;
  color: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.resource-item p {
  color: rgba(255, 255, 255, 0.7);
}

.footer {
  background: #0c2342;
  color: #fff;
  padding: 50px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer .brand {
  color: #fff;
  font-weight: 800;
}

.reveal {
  opacity: 1;
  --reveal-offset: 0px;
  transform: translateY(var(--parallax-offset, 0px));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal {
  opacity: 0;
  --reveal-offset: 18px;
  transform: translateY(calc(var(--parallax-offset, 0px) + var(--reveal-offset)));
}

.js .reveal.visible {
  opacity: 1;
  --reveal-offset: 0px;
}

[data-parallax]:not(.reveal) {
  --parallax-offset: 0px;
  transform: translateY(var(--parallax-offset));
}

@media (max-width: 720px) {
  .menu {
    display: none;
  }

  .hero {
    padding: 90px 0 100px;
  }

  .screen {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}
