:root {
  --primary: #1A1A1A;
  --secondary: #2A2A2A;
  --accent: #D4AF37;
  --text: #F5F5F5;
  --text-muted: #BDBDBD;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --border: #383838;
}

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

html, body {
  background: var(--primary);
  color: var(--text);
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5em;
}

h1 { font-size: 3em; line-height: 1.1; }
h2 { font-size: 2em; border-bottom: 2px solid var(--accent); padding-bottom: 0.5em; }
h3 { font-size: 1.5em; }

p { margin-bottom: 1em; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover { opacity: 0.8; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ BUTTONS ============ */

.btn-primary, .btn-secondary {
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.2em;
  display: block;
  width: 100%;
  text-align: center;
}

/* ============ FORMS ============ */

input, select, textarea {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 1em;
  margin-bottom: 1rem;
  width: 100%;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

/* ============ LANDING PAGE ============ */

.landing-page {
  background: linear-gradient(135deg, var(--primary) 0%, #0F0F0F 100%);
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 2em;
  color: var(--accent);
  font-weight: 700;
}

.landing-header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

.hero h1 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.subheading {
  font-size: 1.3em;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.description {
  font-size: 1.2em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.disclaimer {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ============ SECTIONS ============ */

.section-how-it-works, .section-proof {
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.section-how-it-works h2, .section-proof h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.comparison-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.comparison-card .price {
  font-size: 2em;
  color: var(--accent);
  font-weight: 700;
  margin: 1rem 0;
}

/* ============ APP PAGES ============ */

.app-page {
  padding: 2rem 0;
}

.app-header {
  padding: 2rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.roadmap-container {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.roadmap-item {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.roadmap-number {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9em;
}

.roadmap-item h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.upgrade-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--secondary);
  border-radius: 4px;
  margin-top: 2rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .comparison {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
}

/* ============ SIDEBAR ============ */

.sidebar {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.user-status {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  text-align: center;
}

.status-label {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-bottom: 0.5rem;
}

.status-value {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.nav-item {
  padding: 1rem;
  border-left: 3px solid transparent;
  color: var(--text);
  display: block;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  border-left-color: var(--accent);
  color: var(--accent);
}

/* ============ UPSELL ============ */

.upsell {
  margin-top: 2rem;
}

.upsell-card {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.upsell-card h3 {
  color: var(--accent);
  font-size: 1em;
}

.upsell-card p {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.upsell-card .btn-secondary {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============ LETTER GENERATION ============ */

.letter-preview {
  background: var(--primary);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.letter-preview.hidden {
  display: none;
}

.letter-content {
  background: white;
  color: black;
  padding: 2rem;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
  line-height: 1.8;
  margin: 1.5rem 0;
  min-height: 300px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.letter-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.letter-actions button {
  flex: 1;
  min-width: 150px;
}

/* ============ MODALS ============ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 2em;
  cursor: pointer;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.payment-btn {
  width: 100%;
}

/* ============ DONATION ============ */

.donation {
  text-align: center;
}

.donation-text {
  font-size: 1.1em;
  color: var(--accent);
  margin: 1.5rem 0;
}

.donation-methods {
  background: var(--primary);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
  text-align: left;
}

.donation-methods p {
  margin-bottom: 0.5rem;
}

/* ============ TIMELINE ============ */

.timeline-container {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3em;
}

.timeline-marker.completed { background: var(--success); }
.timeline-marker.pending { background: var(--warning); }
.timeline-marker.future { background: var(--border); }

/* ============ UTILITIES ============ */

.hidden { display: none !important; }
.small { font-size: 0.85em; color: var(--text-muted); }

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-list input {
  width: auto;
  margin: 0;
}

/* ============ FOOTER ============ */

footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
}

.section-content {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
