/* STAR checker. Uses the marketing tokens. Fixed boxes so scoring does not shift the page. */

.star-page {
  padding-bottom: 72px;
}

.star-shell {
  width: min(100% - 48px, 880px);
  margin-inline: auto;
}

.star-kicker {
  margin: 0 0 8px;
  color: var(--brand-1);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.star-form label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 650;
}

.star-optional {
  color: #e8e8f0;
  font-weight: 500;
}

.star-form input,
.star-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  line-height: 1.45;
}

.star-form textarea {
  min-height: 180px;
  resize: vertical;
}

.star-form input:focus,
.star-form textarea:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

.star-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.star-actions .btn {
  min-height: 44px;
}

.star-actions .btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.star-status {
  min-height: 3.2em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.star-results {
  min-height: 460px;
  margin-top: 8px;
}

.star-overall {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: end;
  margin: 8px 0 18px;
}

.star-overall-score {
  grid-row: 1 / span 2;
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.star-overall-score strong {
  font-size: 56px;
  letter-spacing: -0.04em;
}

.star-overall-score span {
  color: #e8e8f0;
  font-size: 18px;
}

.star-overall-band {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}

.star-spoken {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.star-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-bottom: 8px;
}

.star-meter-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
}

.star-meter-top strong {
  font-variant-numeric: tabular-nums;
}

.star-meter-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.star-meter-fill {
  display: block;
  height: 8px;
  border-radius: var(--radius-pill);
}

.star-fill-situation { background: #64d2ff; }
.star-fill-task { background: #bf5af2; }
.star-fill-action { background: #0a84ff; }
.star-fill-result { background: #30d158; }

.star-results h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  letter-spacing: 0;
}

.star-rewrite-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}

.star-rewrite-bar h2 {
  margin: 0;
}

.star-copy {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.star-page .breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.star-feedback {
  margin: 0;
  padding-left: 1.15em;
}

.star-feedback li {
  margin: 0 0 6px;
  color: var(--muted);
}

.star-highlights {
  min-height: 72px;
}

.star-sent {
  display: inline;
}

.star-tag {
  display: inline-block;
  margin: 0 8px 6px 4px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.star-sent-situation .star-tag { color: #041018; background: #64d2ff; }
.star-sent-task .star-tag { color: #140818; background: #e7c4ff; }
.star-sent-action .star-tag { color: #041018; background: #9ecbff; }
.star-sent-result .star-tag { color: #04140c; background: #7ef0a4; }
.star-sent-unclear .star-tag { color: var(--text); background: rgba(255, 255, 255, 0.14); }

.star-rewrite,
.star-highlights {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.star-rewrite {
  min-height: 96px;
}

.star-rewrite p,
.star-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.star-cta {
  margin-top: 36px;
}

.star-q-list,
.star-tool-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.star-q-list li,
.star-tool-list li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.star-q-list a,
.star-tool-list a {
  font-weight: 650;
}

.star-note {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 639px) {
  .star-shell {
    width: min(100% - 32px, 880px);
  }

  .star-meters,
  .star-overall {
    grid-template-columns: 1fr;
  }

  .star-overall-score {
    grid-row: auto;
  }

  .star-overall-score strong {
    font-size: 44px;
  }
}
