/* ClubRetain validation pages - palette matched to the ad creative */
:root {
  --sky-deep: #1d3753;
  --sky-mid: #3d5d87;
  --sky-pale: #93abc7;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.85);
  --ink-faint: rgba(255, 255, 255, 0.62);
  --cta: #f5841f;
  --cta-hover: #ff9636;
  --card: rgba(13, 28, 46, 0.45);
  --card-line: rgba(255, 255, 255, 0.14);
  --ok: #57c98b;
  --warn: #f0b429;
  --risk: #ef6461;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(168deg, var(--sky-deep) 0%, var(--sky-mid) 55%, var(--sky-pale) 130%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 22px 64px;
}

/* ---------- Hero ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(1.9rem, 6.4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.sub strong { color: var(--ink); font-weight: 600; }

.audience {
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin-bottom: 26px;
}

/* ---------- Signup form ---------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.signup input[type="email"],
.signup input[type="text"] {
  width: 100%;
  padding: 15px 16px;
  font: inherit;
  font-size: 1rem;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: #1d2733;
}

.signup input[type="email"]:focus-visible,
.signup input[type="text"]:focus-visible,
.btn:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 18px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--cta);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.privacy {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 38px;
}

.form-error {
  display: none;
  font-size: 0.9rem;
  color: #ffd9d9;
  background: rgba(190, 60, 60, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.form-error.show { display: block; }

#signup { scroll-margin-top: 24px; margin-bottom: 40px; }
#signup .privacy { margin-bottom: 0; }

/* ---------- Dashboard mock (signature element) ---------- */
/* Styled as a screenshot of the real product: light UI surface, app bar,
   score column. System font inside the mock, like a real app. */
.mock {
  margin-top: 34px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #1f2933;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(8, 19, 34, 0.38);
  overflow: hidden;
  margin-bottom: 14px;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid #edf1f5;
  background: #fafbfc;
}

.mock-brand {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.mock-period {
  font-size: 0.75rem;
  color: #7b8794;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f0f3f6;
}
.row:first-of-type { border-top: none; }

.row .who { min-width: 0; flex: 1; }
.row .name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f2933;
}
.row .last {
  font-size: 0.78rem;
  color: #7b8794;
}

.score {
  flex: none;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.s-ok   { color: #1e9e60; }
.s-warn { color: #c08c00; }
.s-risk { color: #d23f3f; }

.status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  color: #52606d;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.status.ok::before   { background: #1e9e60; }
.status.warn::before { background: #e3a800; }
.status.risk::before { background: #d23f3f; }

.mock-caption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 36px;
}

/* ---------- How it works ---------- */
.how {
  margin-bottom: 36px;
}
.how p {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.how p::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cta);
}

/* ---------- Founder line ---------- */
.founder {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.founder img {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.founder p {
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.founder .sig {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Thank-you page ---------- */
.thanks-head { margin-bottom: 26px; }
.thanks-head h1 { margin-bottom: 10px; }

.qual {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 30px;
}

.qual label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 16px 0 6px;
}
.qual label:first-of-type { margin-top: 0; }

.qual select,
.qual input[type="text"],
.qual textarea {
  width: 100%;
  padding: 12px 13px;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d2733;
}
.qual textarea { min-height: 88px; resize: vertical; }

.qual .btn { margin-top: 18px; }

.skip {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.qual-done {
  display: none;
  text-align: center;
  font-size: 1.02rem;
  padding: 10px 0;
}
.qual-done.show { display: block; }

@media (min-width: 560px) {
  .signup { flex-direction: row; }
  .signup input[type="email"],
.signup input[type="text"] { flex: 1; }
  .signup .btn { width: auto; flex: none; padding-inline: 26px; }
}
