* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #07152b;
  color: #e8eefc;
}

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

.page-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  padding: 12px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #9cc2ff;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

.hero {
  padding: 24px 0 16px;
}

.eyebrow {
  color: #8ea8d6;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: capitalize;
}

h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.1;
}

h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
}

h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  line-height: 1.7;
  color: #c9d6f2;
}

.hero-text {
  max-width: 720px;
}

.block {
  background: #102445;
  border: 1px solid #1f3d6d;
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
}

.prose-block p + p {
  margin-top: 16px;
}

.tool-grid,
.related-grid,
.stats-grid,
.check-grid,
.split-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.tool-grid,
.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.check-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tool-card,
.related-card,
.stat-card {
  display: block;
  background: #0b1d3a;
  border: 1px solid #1f3d6d;
  border-radius: 14px;
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tool-card:hover,
.related-card:hover {
  border-color: #315fa8;
  transform: translateY(-1px);
}

.tool-card h3,
.related-card strong {
  display: block;
  margin-bottom: 8px;
}

.related-card span {
  display: block;
  color: #c9d6f2;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  color: #9cc2ff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  min-height: 42px;
  border-radius: 12px;
  background: #315fa8;
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.button.secondary {
  background: #1c3560;
}

.button:hover {
  opacity: 0.95;
}

.status-box,
.tool-placeholder {
  background: #0b1d3a;
  border: 1px solid #18335e;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
  color: #d9e5ff;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #9cc2ff;
}

.faq-item + .faq-item {
  margin-top: 18px;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-textarea,
.tool-input {
  width: 100%;
  background: #07152b;
  color: #e8eefc;
  border: 1px solid #29497d;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  outline: none;
}

.tool-textarea:focus,
.tool-input:focus {
  border-color: #4b7bd0;
}

.tool-textarea {
  min-height: 220px;
  resize: vertical;
}

.tool-actions,
.output-row,
.tool-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.output-row .tool-input {
  flex: 1;
}

.tool-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #d9e5ff;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-card span {
  color: #c9d6f2;
}

.affiliate-block {
  border-color: #2d5d3b;
}

.site-footer {
  padding-top: 0;
  padding-bottom: 32px;
}

.footer-block {
  margin-top: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand {
  display: inline-block;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-text {
  margin: 0;
  max-width: 680px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.footer-links a {
  color: #9cc2ff;
}

hr {
  border: 0;
  border-top: 1px solid #1f3d6d;
  margin: 12px 0;
}

.diff-row {
  line-height: 1.7;
}

.diff-row strong {
  display: inline-block;
  margin-bottom: 6px;
  color: #ffffff;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .tool-actions,
  .output-row,
  .tool-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

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