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

body {
  background-color: #000000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding: 24px;
  padding-top: 4vh;
}

.home-banner {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.home-title {
  display: inline-block;
  color: #e8e8e8;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
  transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
}

.home-title:hover {
  color: #ffffff;
  transform: scale(1.06);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55), 0 0 40px rgba(255, 255, 255, 0.25);
}

.home-subtitle {
  margin-top: 8px;
  color: #888888;
  font-size: 1rem;
  line-height: 1.5;
}

.button-grid {
  width: 100%;
  max-width: 640px;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn-row {
  display: flex;
  gap: 20px;
}

.btn-row .btn {
  flex: 1;
}

.social-links {
  width: 100%;
  max-width: 640px;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease, filter 0.2s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  background-color: #121212;
  color: #ffffff;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.social-link:active {
  transform: translateY(0);
}

.btn {
  position: relative;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 24px;
  padding: 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: #121212;
  transform: translateY(-2px);
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 255, 255, 0.35);
}

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

.btn-locked {
  cursor: not-allowed;
  overflow: hidden;
}

.btn-locked .btn-title {
  opacity: 0.35;
}

.btn.btn-locked:hover {
  background-color: #1c1c1c;
  transform: none;
  color: #d9d9d9;
  text-shadow: none;
}

.btn-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(1px);
}

.lock-icon {
  width: 20px;
  height: 20px;
  fill: #999999;
}

.btn-lock-label {
  color: #999999;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-desc {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  color: #999999;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.35;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}

.btn:hover .btn-desc {
  max-height: 60px;
  margin-top: 8px;
  opacity: 1;
  text-shadow: none;
}

.btn-journey .btn-title {
  font-size: 1.5rem;
}

@media (max-width: 480px) {
  .btn-row {
    flex-direction: column;
  }
}

/* Subpages (e.g. Sleep) */

body.subpage {
  display: block;
  min-height: 100vh;
  padding: 40px 24px 80px;
}

.page-header {
  max-width: 720px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-link {
  color: #999999;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #333333;
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.back-link:hover {
  color: #d9d9d9;
  border-color: #555555;
}

.page-title {
  color: #d9d9d9;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.goal-banner {
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 18px;
  padding: 18px 22px;
  color: #d9d9d9;
  font-size: 1rem;
  line-height: 1.5;
}

.goal-banner strong {
  color: #ffffff;
}

.habit-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  color: #d9d9d9;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-note {
  color: #888888;
  font-weight: 400;
  font-size: 0.9rem;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 16px;
  overflow: hidden;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  color: #d9d9d9;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  color: #999999;
  font-size: 1.3rem;
  font-weight: 400;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-item[open] summary::after {
  transform: rotate(45deg);
}

.accordion-item summary:hover {
  background-color: #262626;
}

.accordion-item[open] summary {
  border-bottom: 1px solid #333333;
}

.accordion-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.accordion-body h3 {
  color: #d9d9d9;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.accordion-body h3:first-child {
  margin-top: 0;
}

.accordion-body p {
  color: #aaaaaa;
  font-size: 0.95rem;
  line-height: 1.55;
}

.form-details {
  margin-top: 14px;
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}

.form-details summary {
  list-style: none;
  cursor: pointer;
  color: #bbbbbb;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.form-details summary::-webkit-details-marker {
  display: none;
}

.form-details summary::after {
  content: "+";
  color: #777777;
  font-size: 1.1rem;
  font-weight: 400;
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.form-details[open] summary::after {
  transform: rotate(45deg);
}

.form-details summary:hover {
  background-color: #1f1f1f;
}

.form-details[open] summary {
  border-bottom: 1px solid #2a2a2a;
}

.form-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-body h4 {
  color: #999999;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-body h4:not(:first-child) {
  margin-top: 6px;
}

.form-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-list li {
  color: #999999;
  font-size: 0.9rem;
  line-height: 1.5;
}

.playlist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0;
}

.playlist-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.playlist-name {
  color: #aaaaaa;
  font-size: 0.95rem;
}

.mini-link {
  color: #d9d9d9;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #444444;
  border-radius: 999px;
  padding: 4px 12px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mini-link:hover {
  color: #ffffff;
  border-color: #666666;
}

.video-embed.placeholder {
  margin-top: 14px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #141414;
  border: 1px dashed #3a3a3a;
  border-radius: 12px;
  color: #777777;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.video-embed .play-icon {
  color: #555555;
  font-size: 1.4rem;
}

.video-embed.link-video {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: #141414;
  background-size: cover;
  background-position: center;
  border: 1px solid #333333;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.video-embed.link-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease;
}

.video-embed.link-video .play-icon {
  position: relative;
  color: #ffffff;
  font-size: 1.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.video-embed.link-video:hover {
  border-color: #666666;
  transform: translateY(-2px);
}

.video-embed.link-video:hover::before {
  background: rgba(0, 0, 0, 0.15);
}

.video-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.video-row .video-embed.small {
  flex: 1;
}

.video-row .video-embed.placeholder.small {
  margin-top: 0;
  font-size: 0.75rem;
  padding: 8px;
}

@media (max-width: 600px) {
  .video-row {
    flex-direction: column;
  }

  .page-title {
    font-size: 1.6rem;
  }
}

/* Journey */

.journey-content {
  max-width: 720px;
}

.journey-intro {
  color: #aaaaaa;
  font-size: 0.95rem;
  line-height: 1.55;
}

.roadmap-wrap {
  position: relative;
}

.roadmap-path {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.roadmap-path path {
  fill: none;
  stroke: #333333;
  stroke-width: 2;
  stroke-linecap: round;
}

.skip-day-form {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
}

.skip-day-form label {
  color: #999999;
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-day-form input {
  width: 80px;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.skip-day-form input:focus {
  outline: none;
  border-color: #666666;
}

.skip-day-form button {
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #444444;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.skip-day-form button:hover {
  background-color: #121212;
  border-color: #666666;
  color: #ffffff;
}

.clear-progress-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: #777777;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.clear-progress-btn:hover {
  color: #e06a6a;
}

.journey-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.journey-overlay[hidden] {
  display: none;
}

.journey-intro-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.journey-intro-modal h2 {
  color: #e8e8e8;
  font-size: 1.2rem;
  font-weight: 700;
  padding-right: 24px;
}

.journey-intro-modal p {
  color: #aaaaaa;
  font-size: 0.9rem;
  line-height: 1.5;
}

.journey-intro-modal #introDayForm {
  display: flex;
  gap: 10px;
}

.journey-intro-modal #introDayInput {
  flex: 1;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.journey-intro-modal #introDayInput:focus {
  outline: none;
  border-color: #666666;
}

.journey-intro-modal #introDayForm button {
  color: #08111f;
  background-color: #6ea8ff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.journey-intro-skip {
  align-self: center;
  background: none;
  border: none;
  color: #999999;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.journey-intro-skip:hover {
  color: #d9d9d9;
}

.journey-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #999999;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.journey-modal-close:hover {
  color: #ffffff;
}

.roadmap {
  list-style: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.roadmap-day {
  margin-top: 72px;
}

.roadmap-section-header + .roadmap-day {
  margin-top: 20px;
}

.roadmap-pillar-header {
  margin: 40px 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.roadmap-pillar-header:first-child {
  margin-top: 0;
}

.roadmap-pillar-title {
  color: #e8e8e8;
  font-size: 1.4rem;
  font-weight: 700;
}

.roadmap-section-header {
  margin-top: 28px;
}

.roadmap-section-header h3 {
  color: #999999;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.roadmap-section-header h3.is-current {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 255, 255, 0.3);
}

.roadmap-card {
  position: relative;
  transition: margin-left 0.2s ease, width 0.2s ease;
}

.roadmap-marker {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 16px;
  padding: 14px 44px 14px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.roadmap-marker:hover {
  background-color: #121212;
  transform: translateY(-1px);
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.roadmap-marker[aria-expanded="true"] {
  border-color: #555555;
}

.roadmap-node-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1c1c1c;
  border: 2px solid #555555;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.roadmap-node-dot.pillar-sleep {
  border-color: #6ea8ff;
}

.roadmap-node-dot.pillar-body {
  border-color: #e0a94c;
}

.roadmap-node-dot.pillar-wellbeing {
  border-color: #b48ce0;
}

.roadmap-node-dot.is-complete {
  background-color: #4ade80;
  border-color: #4ade80;
}

.roadmap-day-number {
  flex-shrink: 0;
  color: #888888;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roadmap-day-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.roadmap-complete-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid #555555;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.roadmap-complete-toggle svg {
  width: 12px;
  height: 12px;
  fill: #555555;
  opacity: 0;
  transition: opacity 0.2s ease, fill 0.2s ease;
}

.roadmap-complete-toggle:hover {
  border-color: #999999;
}

.roadmap-complete-toggle.is-complete {
  background-color: #163a24;
  border-color: #4ade80;
}

.roadmap-complete-toggle.is-complete svg {
  opacity: 1;
  fill: #4ade80;
}

.roadmap-panel {
  margin-top: 10px;
}

.journey-next-day-btn {
  align-self: flex-start;
  margin-top: 16px;
  color: #d9d9d9;
  background-color: #1c1c1c;
  border: 1px solid #444444;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.journey-next-day-btn:hover {
  background-color: #121212;
  border-color: #666666;
  color: #ffffff;
}

.roadmap-panel-inner {
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 20px;
}

.journey-pillar-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #222222;
  border: 1px solid #3a3a3a;
}

.journey-pillar-tag.pillar-sleep {
  color: #6ea8ff;
  border-color: rgba(110, 168, 255, 0.4);
}

.journey-pillar-tag.pillar-body {
  color: #e0a94c;
  border-color: rgba(224, 169, 76, 0.4);
}

.journey-pillar-tag.pillar-wellbeing {
  color: #b48ce0;
  border-color: rgba(180, 140, 224, 0.4);
}

.journey-panel-title {
  color: #d9d9d9;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .roadmap-day-title {
    font-size: 0.9rem;
    white-space: normal;
  }
}
