:root {
  --primary: #f472b6;
  --primary-dark: #db2777;
  --secondary: #a5f3fc;
  --accent: #c4b5fd;
  --surface: #ffffff;
  --surface-muted: #fff5f8;
  --background: #fffafb;
  --border: #f4d7df;
  --text-main: #2c2c2c;
  --text-muted: #5a5a5a;
  --shadow: 0 18px 35px rgba(244, 114, 182, 0.15);
  --transition: all 0.25s ease;
}

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

body {
  font-family:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #fff0f6 0%, var(--background) 50%);
  color: var(--text-main);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1,
h2,
h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

ul {
  list-style-position: inside;
  padding-left: 1rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.4rem;
}

.max-w-2xl {
  max-width: 50rem;
}

.list-disc {
  list-style: disc;
}

.list-inside {
  list-style-position: inside;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--text-main);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.home-button:hover {
  transform: translateY(-2px);
}

.home-button.subtle {
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.intro {
  text-align: left;
  margin-bottom: 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.intro-pill {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.input-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.input-group input,
.journal-input {
  width: 100%;
  border-radius: 1rem;
  border: 2px solid var(--border);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: var(--surface-muted);
  transition: var(--transition);
  color: var(--text-main);
}

.input-group input:focus,
.journal-input:focus {
  border-color: var(--primary-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

.helper-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card strong {
  font-size: 1.6rem;
  color: var(--text-main);
}

.stat-card small {
  color: var(--text-muted);
}

.phase-highlight {
  border: 2px solid var(--border);
}

.phase-tag {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 0.75rem;
}

.phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.phase-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.9rem;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.timeline-card .timeline {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.timeline-segment {
  flex: 1;
  border-radius: 1rem;
  border: 2px solid var(--border);
  padding: 0.75rem;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 600;
  transition: var(--transition);
}

.timeline-segment span {
  font-size: 0.95rem;
}

.timeline-segment small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-segment.active {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.partner-playbook ul,
.nourish-card ul {
  padding-left: 1rem;
}

.affirmations {
  list-style: none;
  padding-left: 0;
}

.affirmations li {
  background: var(--surface-muted);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.placeholder-card ul {
  margin-top: 0.75rem;
}

.journal-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-input {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

.journal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-message {
  font-weight: 600;
  color: var(--primary-dark);
}

.support-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.support-tile {
  border: 1px dashed var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: var(--surface-muted);
}

.disclaimer {
  font-size: 0.9rem;
  font-style: italic;
}

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

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.error-card {
  background: #fff1f4;
  border: 1px solid #f8b4c6;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .timeline {
    flex-direction: column;
  }

  .timeline-segment {
    text-align: left;
  }

  .journal-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
