/* GeniusComply — /try landing page styles */

/* Base reset & page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

/* Countdown badge */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-light);
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: 9999px;
  border: 1px solid var(--accent);
}

/* Main */
.main {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Step visibility */
.step { display: none; }
.step.active { display: block; }

/* ========== STEP 1: Hero + Form ========== */

.hero-section {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.hero-section .tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

/* How it works */
.how-it-works {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.how-step {
  text-align: center;
  flex: 1;
  max-width: 160px;
}
.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.how-step-label {
  font-size: var(--text-small);
  color: var(--text);
  font-weight: 500;
}

/* Form */
.assess-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}
.form-group input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-short) ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input::placeholder {
  color: var(--text-muted);
}
.form-hint {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Data handling statement */
.data-statement {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background var(--duration-short) ease, opacity var(--duration-short) ease;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #164D34;
}
.btn-accent {
  background: var(--accent);
  color: var(--text);
}
.btn-accent:hover:not(:disabled) {
  background: #D49830;
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-alt);
}
.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.0625rem;
}
.btn-block {
  width: 100%;
}

/* Trust bar */
.trust-bar {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
}
.trust-bar a { color: var(--text-muted); text-decoration: underline; }

/* ========== Loading Spinner ========== */
.loading-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  margin-top: var(--space-md);
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* Inline spinner (button) */
.spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* ========== STEP 2: Results ========== */

/* Score circle */
.score-section {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid var(--border);
  background: var(--surface);
  margin-bottom: var(--space-md);
  transition: border-color var(--duration-medium) ease;
}
.score-circle.grade-pass { border-color: var(--success); }
.score-circle.grade-conditional { border-color: var(--warning); }
.score-circle.grade-fail { border-color: var(--error); }

.score-value {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: 700;
  line-height: 1;
}
.score-circle.grade-pass .score-value { color: var(--success); }
.score-circle.grade-conditional .score-value { color: var(--warning); }
.score-circle.grade-fail .score-value { color: var(--error); }

.score-grade {
  font-size: var(--text-h3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-grade.grade-pass { color: var(--success); }
.score-grade.grade-conditional { color: var(--warning); }
.score-grade.grade-fail { color: var(--error); }

/* Benchmarks */
.benchmarks {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: var(--text-small);
  color: var(--text-muted);
}
.benchmark-item {
  text-align: center;
}
.benchmark-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  display: block;
}

/* Module cards */
.modules-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}
.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.module-card-name {
  font-size: var(--text-body);
  font-weight: 600;
}
.module-card-score {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 600;
}
.module-card-reg {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.progress-track {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--duration-medium) ease;
}
.progress-fill.grade-pass { background: var(--success); }
.progress-fill.grade-conditional { background: var(--warning); }
.progress-fill.grade-fail { background: var(--error); }

/* Locked module cards */
.locked-card {
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  opacity: 0.65;
  position: relative;
}
.locked-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.locked-card-name {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-muted);
}
.lock-icon {
  font-size: var(--text-h3);
  color: var(--text-muted);
}
.locked-card-reg {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}
.locked-card-cta {
  font-size: var(--text-caption);
  color: var(--primary);
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* Upgrade CTA banner */
.upgrade-banner {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
}
.upgrade-banner h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.upgrade-banner p {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* PDF gate */
.pdf-gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.pdf-gate h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.pdf-gate p {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.pdf-gate .email-row {
  display: flex;
  gap: var(--space-sm);
}
.pdf-gate .email-row input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pdf-gate .email-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ========== STEP 3: Done ========== */

.done-section {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.done-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}
.done-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.done-section p {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.signup-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}
.signup-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}
.signup-cta p {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Rate-limit CTA */
.rate-limit-cta {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.rate-limit-cta h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--warning);
  margin-bottom: var(--space-sm);
}
.rate-limit-cta p {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Error banner */
.error-banner {
  display: none;
  background: #FDE8E8;
  border: 1px solid var(--error);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  color: var(--error);
  font-size: var(--text-small);
}
.error-banner.visible { display: block; }
.error-banner-dismiss {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--error);
  font-size: var(--text-h3);
  cursor: pointer;
  line-height: 1;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--text-small);
  color: var(--text-muted);
}
.footer a { color: var(--text-muted); }

/* ========== Responsive ========== */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }

  .hero-section h1 { font-size: var(--text-h2); }

  .how-it-works {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  .how-step { max-width: 240px; }

  .score-circle {
    width: 110px;
    height: 110px;
  }
  .score-value { font-size: var(--text-display); }

  .benchmarks {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .pdf-gate .email-row {
    flex-direction: column;
  }

  .assess-form { padding: var(--space-lg); }
}
