/* ============================================================
   challenge.css — #13MindReset landing page styles
   Matches xiiiMindz dark theme palette.
   ============================================================ */

:root {
  --ch-bg:        #0c0f1a;
  --ch-surface:   #10132a;
  --ch-card:      #141829;
  --ch-card-h:    #1a1f38;
  --ch-fg:        #e8e6e1;
  --ch-fg-muted:  #9a978f;
  --ch-fg-dim:    #6b6860;
  --ch-accent:    #d4a853;
  --ch-accent-b:  #e8c06a;
  --ch-f:         #ff7a59;
  --ch-border:    rgba(255,255,255,0.06);
  --ch-radius:    12px;
  --ch-max:       1100px;
  --ch-space-xs:  0.5rem;
  --ch-space-sm:  1rem;
  --ch-space-md:  2rem;
  --ch-space-lg:  3.5rem;
  --ch-space-xl:  6rem;
  --ch-font-d:    'Syne', sans-serif;
  --ch-font-b:    'DM Sans', sans-serif;
}

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

body {
  background: var(--ch-bg);
  color: var(--ch-fg);
  font-family: var(--ch-font-b);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== LOGO BAR ===== */
.ch-logo-bar {
  display: flex;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-logo-bar img {
  height: 36px;
  width: auto;
}

/* Footer brand image */
.ch-footer-brand img {
  height: 24px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* ===== UTILITY ===== */
.ch-accent { color: var(--ch-accent); }
.ch-tag {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ch-accent);
  margin-bottom: 0.6rem;
  display: block;
}
.ch-badge {
  display: inline-block;
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ch-accent);
  border: 1px solid rgba(212,168,83,0.28);
  padding: 0.4rem 1.4rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.ch-badge--sm { font-size: 0.7rem; }
.ch-section { padding: var(--ch-space-xl) 0; }
.ch-section-inner {
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0 var(--ch-space-md);
}
.ch-section h2 {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* ===== HERO ===== */
.ch-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--ch-space-xl) var(--ch-space-md) var(--ch-space-lg);
  overflow: hidden;
}
.ch-hero-gradient {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.ch-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.ch-hero h1 {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.ch-sub {
  font-size: 1.1rem;
  color: var(--ch-fg-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.ch-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ch-price-label { font-size: 0.85rem; color: var(--ch-fg-muted); }
.ch-price-value { font-family: var(--ch-font-d); font-weight: 700; color: var(--ch-accent-b); font-size: 1rem; }
.ch-price-sub { font-size: 0.8rem; color: var(--ch-fg-dim); }
.ch-price-amount {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ch-fg);
}
.ch-price-pill--large .ch-price-amount { font-size: 1.6rem; }

/* CTA BUTTONS */
.ch-cta-primary {
  display: inline-block;
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ch-bg);
  background: var(--ch-accent);
  padding: 1rem 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(212,168,83,0.25);
  letter-spacing: 0.02em;
}
.ch-cta-primary:hover {
  background: var(--ch-accent-b);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(212,168,83,0.35);
}
.ch-cta-secondary {
  display: inline-block;
  font-family: var(--ch-font-d);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ch-fg-muted);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}
.ch-cta-secondary:hover { color: var(--ch-fg); border-color: rgba(255,255,255,0.22); }
.ch-cta-note {
  font-size: 0.8rem;
  color: var(--ch-fg-dim);
  margin-top: 1rem;
}

/* Hero Minds Track */
.ch-hero-minds {
  position: absolute;
  bottom: var(--ch-space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.ch-minds-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ch-fg-dim);
  margin-bottom: 0.5rem;
}
.ch-minds-track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ch-mind-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0.7;
}

/* ===== HOW IT WORKS ===== */
.ch-how { background: var(--ch-surface); }
.ch-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--ch-space-md);
}
.ch-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  border-left: 3px solid rgba(212,168,83,0.25);
  transition: all 0.3s ease;
}
.ch-step:hover { border-left-color: var(--ch-accent); transform: translateY(-2px); }
.ch-step--highlight { border-left-color: rgba(255,122,89,0.35); }
.ch-step--highlight:hover { border-left-color: var(--ch-f); }
.ch-step-num {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 2rem;
  color: rgba(212,168,83,0.22);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.3s;
}
.ch-step:hover .ch-step-num { color: var(--ch-accent); }
.ch-step--highlight:hover .ch-step-num { color: var(--ch-f); }
.ch-step-body h3 {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.ch-step-body p { font-size: 0.9rem; color: var(--ch-fg-muted); line-height: 1.6; }

/* ===== PLANNER PREVIEW ===== */
.ch-planner {}
.ch-planner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ch-space-lg);
  align-items: center;
}
.ch-planner-desc {
  font-size: 1rem;
  color: var(--ch-fg-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.ch-planner-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ch-planner-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ch-fg-muted);
}
.ch-planner-list svg {
  color: var(--ch-accent);
  flex-shrink: 0;
}

/* Planner Mockup */
.ch-planner-visual { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ch-planner-mockup {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.ch-mockup-header {
  background: var(--ch-surface);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ch-border);
}
.ch-mockup-dots { display: flex; gap: 0.4rem; }
.ch-mockup-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ch-fg-dim);
  opacity: 0.5;
}
.ch-mockup-title {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ch-fg);
  margin-left: auto;
}
.ch-mockup-body { padding: 1.5rem; }
.ch-mockup-roman {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 3rem;
  color: var(--ch-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.ch-mockup-label {
  font-size: 0.85rem;
  color: var(--ch-fg-muted);
  margin-bottom: 1rem;
}
.ch-mockup-cycle {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ch-mockup-cycle span {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(212,168,83,0.15);
  color: var(--ch-accent);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-mockup-cycle .ch-f { background: rgba(255,122,89,0.15); color: var(--ch-f); }
.ch-mockup-weeks { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ch-mockup-wk {
  font-size: 0.62rem;
  color: var(--ch-fg-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ch-border);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
}
.ch-planner-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--ch-accent);
  font-family: var(--ch-font-d);
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.ch-testimonials { background: var(--ch-surface); }
.ch-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--ch-space-md);
}
.ch-testi-card {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ch-testi-quote { color: rgba(212,168,83,0.35); }
.ch-testi-text {
  font-size: 0.95rem;
  color: var(--ch-fg-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.ch-testi-attr { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.ch-testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(212,168,83,0.2);
  color: var(--ch-accent);
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ch-avatar-alt { background: rgba(192,132,212,0.2); color: #c084d4; }
.ch-testi-name { font-weight: 600; font-size: 0.9rem; }
.ch-testi-role { font-size: 0.78rem; color: var(--ch-fg-dim); }
.ch-testi-coming {
  background: var(--ch-card);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--ch-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}
.ch-coming-label {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ch-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ch-testi-coming p { font-size: 0.9rem; color: var(--ch-fg-dim); }
.ch-share-link { font-size: 0.9rem; color: var(--ch-accent); text-decoration: none; font-family: var(--ch-font-d); font-weight: 600; }
.ch-share-link:hover { color: var(--ch-accent-b); }

/* ===== FAQ ===== */
.ch-faq-list { display: flex; flex-direction: column; gap: 0; }
.ch-faq-item {
  border-bottom: 1px solid var(--ch-border);
  padding: 1.5rem 0;
}
.ch-faq-item:first-child { border-top: 1px solid var(--ch-border); }
.ch-faq-item h3 {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--ch-fg);
}
.ch-faq-item p { font-size: 0.95rem; color: var(--ch-fg-muted); line-height: 1.7; }
.ch-faq-item a { color: var(--ch-accent); }
.ch-faq-item a:hover { color: var(--ch-accent-b); }

/* ===== BOTTOM CTA ===== */
.ch-bottom-cta {
  padding: var(--ch-space-xl) 0;
  text-align: center;
  background: var(--ch-surface);
}

/* ===== FOOTER ===== */
.ch-footer {
  padding: var(--ch-space-lg) var(--ch-space-md);
  border-top: 1px solid var(--ch-border);
  text-align: center;
}
.ch-footer-inner { max-width: var(--ch-max); margin: 0 auto; }
.ch-footer-brand {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ch-accent);
  margin-bottom: 0.25rem;
}
.ch-footer-tagline { font-size: 0.85rem; color: var(--ch-fg-dim); margin-bottom: var(--ch-space-sm); }
.ch-footer-nav { display: flex; justify-content: center; gap: 1.5rem; }
.ch-footer-nav a { font-size: 0.8rem; color: var(--ch-fg-dim); text-decoration: none; }
.ch-footer-nav a:hover { color: var(--ch-fg-muted); }

/* ===== PAYMENT MODAL ===== */
.ch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: var(--ch-space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ch-modal-overlay.ch-modal-open {
  opacity: 1;
  pointer-events: all;
}
.ch-modal {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: 18px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.ch-modal-open .ch-modal { transform: translateY(0); }
.ch-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--ch-fg-dim);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}
.ch-modal-close:hover { color: var(--ch-fg); }
.ch-modal-header { margin-bottom: 1.75rem; }
.ch-modal-header h2 {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.ch-modal-header p { font-size: 0.9rem; color: var(--ch-fg-muted); }
.ch-modal-price {
  background: var(--ch-surface);
  border: 1px solid var(--ch-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.ch-modal-price-items { margin-bottom: 0.75rem; }
.ch-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ch-fg-muted);
  padding: 0.3rem 0;
}
.ch-price-row .ch-free { color: var(--ch-accent-b); font-weight: 700; font-family: var(--ch-font-d); }
.ch-price-row .ch-price-val { color: var(--ch-fg); font-weight: 600; }
.ch-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ch-border);
  padding-top: 0.75rem;
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 1.1rem;
}
.ch-form-group { margin-bottom: 1.25rem; }
.ch-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ch-fg-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}
.ch-form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--ch-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--ch-fg);
  font-family: var(--ch-font-b);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.ch-form-group input:focus {
  outline: none;
  border-color: var(--ch-accent);
}
.ch-form-error {
  background: rgba(255,122,89,0.12);
  border: 1px solid rgba(255,122,89,0.3);
  border-radius: 6px;
  color: var(--ch-f);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.ch-btn-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ch-bg);
  background: var(--ch-accent);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.ch-btn-pay:hover:not(:disabled) { background: var(--ch-accent-b); transform: translateY(-2px); }
.ch-btn-pay:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.ch-spinner { animation: ch-spin 0.8s linear infinite; }
@keyframes ch-spin { to { transform: rotate(360deg); } }
.ch-modal-disclaimer { font-size: 0.75rem; color: var(--ch-fg-dim); text-align: center; margin-bottom: 1.25rem; }
.ch-modal-perks {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.ch-perk {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--ch-fg-dim);
}
.ch-perk svg { color: var(--ch-accent); }

/* ===== SUCCESS PAGE ===== */
.ch-success {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--ch-space-xl) var(--ch-space-md);
}
.ch-success-check {
  width: 80px; height: 80px;
  background: rgba(212,168,83,0.12);
  border: 2px solid var(--ch-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ch-accent);
  margin-bottom: 1.5rem;
}
.ch-success h1 {
  font-family: var(--ch-font-d);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 600px;
}
.ch-success-sub {
  font-size: 1rem;
  color: var(--ch-fg-muted);
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.ch-success-next {
  max-width: 520px;
  width: 100%;
  text-align: left;
  margin-bottom: 2.5rem;
}
.ch-success-section-label {
  font-family: var(--ch-font-d);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ch-fg-dim);
  margin-bottom: 1.25rem;
}
.ch-success-timeline { display: flex; flex-direction: column; gap: 0; }
.ch-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-left: 2px solid var(--ch-border);
  margin-left: 20px;
  position: relative;
}
.ch-timeline-item:last-child { border-left-color: transparent; }
.ch-tl-icon {
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ch-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--ch-border);
  z-index: 1;
}
.ch-timeline-done .ch-tl-icon { background: rgba(212,168,83,0.2); border-color: var(--ch-accent); color: var(--ch-accent); }
.ch-timeline-active .ch-tl-icon { background: var(--ch-accent); border-color: var(--ch-accent); color: var(--ch-bg); }
.ch-tl-dot {
  width: 8px; height: 8px;
  background: var(--ch-accent);
  border-radius: 50%;
}
.ch-tl-circle { font-family: var(--ch-font-d); font-weight: 700; font-size: 0.7rem; color: var(--ch-fg-dim); }
.ch-tl-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.ch-tl-desc { font-size: 0.85rem; color: var(--ch-fg-dim); line-height: 1.5; }
.ch-success-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .ch-hero { min-height: 95vh; padding: var(--ch-space-lg) var(--ch-space-sm); }
  .ch-hero-minds { bottom: var(--ch-space-sm); }
  .ch-section { padding: var(--ch-space-lg) 0; }
  .ch-section-inner { padding: 0 var(--ch-space-sm); }
  .ch-steps { grid-template-columns: 1fr; }
  .ch-planner-inner { grid-template-columns: 1fr; }
  .ch-planner-visual { order: -1; }
  .ch-testi-grid { grid-template-columns: 1fr; }
  .ch-price-pill { flex-direction: column; gap: 0.2rem; }
  .ch-modal { padding: 1.75rem; }
  .ch-footer-nav { flex-wrap: wrap; gap: 1rem; }
}