@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@400;500;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #252525;
  --accent: #e07a5f;
  --accent-hover: #c96a50;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.portal {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.portal-header {
  text-align: center;
  margin-bottom: 48px;
}

.portal-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.portal-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.field {
  margin-bottom: 24px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0a0' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result / content plan */
.result {
  display: none;
}

.result.visible {
  display: block;
}

.result-header {
  margin-bottom: 24px;
}

.result-header h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.result-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-grid {
  display: grid;
  gap: 16px;
}

.plan-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  animation: fadeUp 0.4s ease forwards;
  opacity: 0;
}

.plan-card:nth-child(1) { animation-delay: 0.05s; }
.plan-card:nth-child(2) { animation-delay: 0.1s; }
.plan-card:nth-child(3) { animation-delay: 0.15s; }
.plan-card:nth-child(4) { animation-delay: 0.2s; }
.plan-card:nth-child(5) { animation-delay: 0.25s; }
.plan-card:nth-child(6) { animation-delay: 0.3s; }
.plan-card:nth-child(7) { animation-delay: 0.35s; }
.plan-card:nth-child(8) { animation-delay: 0.4s; }

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

.plan-hook {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.plan-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-platform {
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.back-btn {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition);
}

.back-btn:hover {
  color: var(--text);
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .portal {
    padding: 40px 16px;
  }

  .portal-header h1 {
    font-size: 2rem;
  }

  .form-card {
    padding: 24px 20px;
  }
}
