* {
  box-sizing: border-box;
}

/* Ensure elements using the HTML `hidden` attribute are actually hidden
   (prevents components with explicit display styles from appearing). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f7f9;
  color: #1f2937;
}

.container {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 20px;
}

h1 {
  margin-bottom: 8px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  color: #4b5563;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.form-card {
  display: grid;
  gap: 12px;
}

.form-section {
  margin-bottom: 0;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px;
}

.form-section + .form-section {
  margin-top: 32px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

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

.section-label {
  margin: 0;
}

label {
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

select {
  background: #ffffff;
}

.field-helper {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
}

button {
  cursor: pointer;
  background: #111827;
  color: #ffffff;
  border: none;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#submit-btn {
  background: #0b1f3a;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

#submit-btn:hover {
  background: #16345f;
  transform: translateY(-1px);
}

.results-card h2 {
  margin-top: 0;
}

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

.identity-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.identity-name {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  color: #0b1f3a;
  margin: 0 0 12px;
}

.identity-explanation {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  max-width: 680px;
  margin: 0 0 10px;
}

.identity-recognition {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.opportunity-score-block {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.opportunity-score-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  margin-bottom: 4px;
}

.opportunity-score-value {
  font-size: 28px;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0;
}

.opportunity-score-helper {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
  max-width: 420px;
}

.result-item {
  margin-bottom: 14px;
}

.result-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.result-item p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.error {
  margin-top: 8px;
  color: #b91c1c;
}

.share-section {
  margin-top: 32px;
}

.share-section h2 {
  margin-bottom: 16px;
}

.share-card {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 22px;
  position: relative;
  background: linear-gradient(135deg, #0b1f3a 0%, #17396b 55%, #295a9b 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.share-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 28px;
  background: radial-gradient(
    circle at top,
    rgba(120,160,255,0.25),
    transparent 60%
  );
  z-index: -1;
}

/* Force all text inside share card to white */
.share-card,
.share-card * {
  color: #ffffff !important;
}

.share-card-inner {
  padding: 40px 36px;
  color: #ffffff;
  text-align: left;
}

.share-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 14px;
}

.share-archetype {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  word-break: break-word;

  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.share-growth-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.82;
  margin-bottom: 6px;
}

.share-growth-style {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  opacity: 0.96;
  margin-bottom: 18px;
}

.share-question {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.95;
}

.share-footer {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: lowercase;
  opacity: 0.72;
}

.share-compare-prompt {
  max-width: 640px;
  margin: 14px auto 0;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.share-buttons {
  max-width: 640px;
  margin: 18px auto 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-buttons button {
  flex: 1 1 180px;
  min-width: 180px;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  background: #0b1f3a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.share-buttons button:hover {
  background: #16345f;
  transform: translateY(-1px);
}

.share-status {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 14px;
  color: #1d4f91;
  min-height: 20px;
}

@media (max-width: 700px) {
  .identity-name {
    font-size: 30px;
  }

  .share-card-inner {
    padding: 28px 22px;
  }

  .share-archetype {
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    word-break: break-word;
  }

  .share-growth-style {
    font-size: 18px;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-buttons button {
    width: 100%;
  }
}

.share-status-error {
  color: #b91c1c;
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.paid-unlock-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.paywall-social-proof {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

.paid-unlock-section p {
  margin: 0 0 14px;
  color: #4b5563;
}

.paid-unlock-description {
  margin: 0 0 14px;
  color: #4b5563;
}

.paid-loading-state,
.paid-load-error {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.loading-state {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.loading-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #111827;
}

.loading-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(11,31,58,0.12);
  border-top-color: #0b1f3a;
  animation: spin 1s linear infinite;
  flex: 0 0 36px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.paid-loading-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #111827;
}

.paid-loading-subtitle {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.paid-load-error {
  color: #b91c1c;
}

.blueprint-locked-preview {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 14px;
}

.locked-items-list {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #374151;
}

.locked-items-list li {
  margin-bottom: 6px;
}

.blueprint-locked-preview button {
  width: 100%;
  background: #0b1f3a;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

.blueprint-locked-preview button:hover {
  background: #16345f;
}

.blueprint-unlocked h3 {
  margin: 14px 0 8px;
  font-size: 15px;
}

.blueprint-unlocked p {
  margin: 0;
  line-height: 1.5;
}

.blueprint-unlocked ul {
  margin: 0;
  padding-left: 18px;
}

.content-plan-weeks {
  display: grid;
  gap: 12px;
}

.content-plan-week {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
}

.content-plan-week h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

.content-plan-week ul {
  margin: 0;
  padding-left: 18px;
}

.content-plan-week li {
  margin-bottom: 6px;
}

.viral-ideas-section {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.viral-ideas-section ul {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 12px 12px 28px;
}

.viral-ideas-section li {
  margin-bottom: 6px;
}

.paid-unlock-section button {
  width: auto;
  min-width: 180px;
  background: #111827;
  padding: 12px 18px;
}

.paid-unlock-section button:hover {
  background: #1f2937;
}

@media (max-width: 700px) {
  .paid-unlock-section button {
    width: 100%;
  }
}
