* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #f7f7f5;
  margin: 0;
  padding: 24px 16px 48px;
}
.container { max-width: 960px; margin: 0 auto; }
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 15px; margin: 20px 0 8px; }
.sub { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.muted { color: #777; font-size: 13px; }
.foot { color: #999; font-size: 12px; margin-top: 24px; }

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .inputs { grid-template-columns: 1fr; }
}
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
textarea {
  width: 100%;
  height: 220px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  background: #fff;
}
.actions { display: flex; gap: 10px; margin: 16px 0 4px; }
button {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
}
button.primary { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.hint { color: #777; font-size: 13px; min-height: 18px; }

.results { border-top: 1px solid #ddd; margin-top: 16px; padding-top: 8px; }
.score-row { display: flex; align-items: baseline; gap: 12px; }
.score { font-size: 36px; font-weight: 800; color: #1a73e8; }
.bar {
  height: 8px;
  border-radius: 4px;
  background: #e5e5e5;
  margin: 8px 0 4px;
  overflow: hidden;
}
.bar-fill { height: 100%; background: #1a73e8; width: 0%; }

.chips { margin-bottom: 4px; }
.chip {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px;
  border-radius: 20px;
  font-size: 12px;
  background: #fff;
  border: 1px solid #ccc;
}
.chip.ok { color: #2f7d32; border-color: #2f7d32; }
.chip.amber { color: #8a6d00; border-color: #8a6d00; }
.chip.bad { color: #b3261e; border-color: #b3261e; }
.ok-text { color: #2f7d32; }
.amber-text { color: #8a6d00; }
.bad-text { color: #b3261e; }

.fixrow {
  padding: 10px 12px;
  margin: 6px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}
.fix-tip { font-size: 13px; margin-top: 4px; line-height: 1.5; }
.checks { font-size: 13px; line-height: 1.9; }

[hidden] { display: none !important; }
.pricing { padding: 20px; border: 1px solid #bed5f4; border-radius: 12px; background: #eef5ff; }
.plans { display: flex; flex-wrap: wrap; gap: 24px; }
.plans p { padding: 16px; background: white; border-radius: 8px; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #1a73e8; outline-offset: 3px; }
.sub, textarea, .checks, .fix-tip { font-size: 16px; }
label, .muted, .hint, .foot, .chip { font-size: 14px; }
.foot { color: #666; line-height: 1.7; }

/* Keep narrow screens and long keywords within the viewport. */
.inputs > div { min-width: 0; }
h1, .chip, .fixrow, .checks, .foot { overflow-wrap: anywhere; }
.chip { max-width: calc(100% - 6px); }
.actions, .score-row { flex-wrap: wrap; }
button { min-height: 44px; }
