/* The public website check. Same brand as lunar-ds.com: near-black, warm white, gold. */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(200, 150, 58, 0.09), transparent 60%),
    radial-gradient(40rem 26rem at -10% 20%, rgba(196, 64, 52, 0.06), transparent 60%),
    var(--ink);
}
main {
  flex: 1;
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
}

.top {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.logo img {
  display: block;
  width: 132px;
  height: auto;
}
.top-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.top-link:hover {
  color: var(--text);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 7.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  line-height: 1.2;
}
.lede {
  margin-top: 1.1rem;
  max-width: 38rem;
  font-size: 1.1rem;
  color: #d9d4ca;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
.error {
  margin-top: 0.8rem;
  color: var(--poor);
}

/* Start */

.hero {
  padding: clamp(2.5rem, 9vw, 6rem) 0 3rem;
}
.check-form {
  margin-top: 2rem;
  display: flex;
  gap: 0.6rem;
  max-width: 40rem;
  padding: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.check-form:focus-within {
  border-color: var(--gold);
}
.check-form input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}
.check-form input:focus {
  outline: none;
}
.check-form input::placeholder {
  color: #6f6b63;
}
.go {
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
}
.go:hover {
  background: #fff;
}
.go:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 30rem) {
  .check-form {
    flex-direction: column;
    border-radius: 14px;
  }
  .go {
    width: 100%;
  }
}
.turnstile {
  margin-top: 0.75rem;
}
.fine {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.fine a,
.consent a,
.foot a {
  color: var(--text);
}

.points-teaser {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.points-teaser li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.95rem;
}
.points-teaser span {
  font-family: var(--display);
  color: var(--gold);
  font-size: 0.95rem;
}

/* Running */

.running {
  padding: clamp(2.5rem, 9vw, 6rem) 0;
}
.progress {
  margin-top: 2.2rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #23232e;
  overflow: hidden;
  max-width: 40rem;
}
.progress-bar {
  height: 100%;
  width: 3%;
  background: linear-gradient(90deg, var(--gold), #e8c27a);
  transition: width 0.6s ease;
}
.step-line {
  margin-top: 0.9rem;
  min-height: 1.7em;
}

/* Result */

.result {
  padding: clamp(2rem, 7vw, 4rem) 0 3rem;
}
.score-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}
.score-head h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin-top: 0.4rem;
}
.score-head .muted {
  margin-top: 0.6rem;
}
.score-moon {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
}
.score-moon .moon {
  width: clamp(5rem, 18vw, 8rem);
  height: auto;
}
.score-n {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
}
.score-of {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.moon {
  display: block;
}
.moon-dark {
  fill: #23232e;
}
.moon-lit {
  fill: var(--text);
}
@media (max-width: 32rem) {
  .score-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.result h2 {
  margin-top: 3rem;
}
.areas {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}
.area {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 8px;
}
.area-good {
  border-left-color: var(--good);
}
.area-attention {
  border-left-color: var(--attention);
}
.area-poor {
  border-left-color: var(--poor);
}
.area-name {
  font-weight: 600;
}
.area-status {
  font-size: 0.85rem;
  font-weight: 600;
}
.area-about {
  margin-top: 0.3rem;
  line-height: 1.5;
}

.top-issues {
  margin-top: 1.1rem;
  counter-reset: issue;
  display: grid;
  gap: 0.9rem;
}
.issue {
  counter-increment: issue;
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 3.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.issue::before {
  content: counter(issue);
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
}
.issue h3 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}
.issue p {
  margin-top: 0.4rem;
  color: #d0cbc1;
  font-size: 0.95rem;
}
.issue-fail {
  border-color: rgba(255, 106, 94, 0.45);
}

/* The offer */

.lead {
  margin-top: 3.5rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(200, 150, 58, 0.07), rgba(200, 150, 58, 0.02));
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 52rem) {
  .lead {
    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
}
.lead h2 {
  margin-top: 0;
}
.lead-copy p {
  margin-top: 0.8rem;
}
.lead-form {
  display: grid;
  gap: 0.9rem;
}
.row {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 34rem) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
label {
  font-size: 0.85rem;
  font-weight: 600;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.lead input[type="text"],
.lead input[type="email"],
.lead input[type="tel"],
.lead textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
}
.lead textarea {
  resize: vertical;
}
.lead input:focus-visible,
.lead textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
}
.consent input {
  margin-top: 0.25rem;
  accent-color: var(--gold);
}
.lead-form .go {
  justify-self: start;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-done p {
  margin-top: 0.8rem;
}
.go-link {
  color: var(--gold);
}

.again {
  margin-top: 2.5rem;
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.foot {
  width: min(100% - 2rem, 58rem);
  margin: 3rem auto 0;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: #d0cbc1;
  font-size: 0.92rem;
}
.foot p + p {
  margin-top: 0.5rem;
}
