/* ═══════════════════════════════════════════════════════
   1-HOUR CHALLENGE — app layer on top of the brand system
   ═══════════════════════════════════════════════════════ */

/* ═══ NAV ═══ */
.app-wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 1px; color: var(--white);
}
.app-wordmark .pulse, .app-brandline .pulse {
  width: 8px; height: 8px; background: var(--amber);
  border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.app-year {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 4px;
  color: var(--muted);
}
.app-signout {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted); transition: color 0.3s;
}
.app-signout:hover { color: var(--amber); }

/* ═══ PAGE SHELL ═══ */
.app-page { padding: 140px 48px 100px; }
.app-shell {
  max-width: 860px; margin: 0 auto; text-align: center;
  animation: fadeUp 0.7s var(--ease-expo) both;
}
.app-shell-narrow { max-width: 560px; }
.app-shell-wide { max-width: 1100px; }

.app-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 14px;
}
.app-title-lg { font-size: clamp(3.2rem, 7vw, 6rem); }
.app-subtitle {
  font-size: 15px; font-weight: 300; color: var(--muted);
  line-height: 1.8; margin-bottom: 28px;
}
.app-body {
  font-size: 15px; font-weight: 300; color: var(--warm-gray);
  max-width: 560px; margin: 0 auto 44px; line-height: 1.9;
}
.app-actions { display: flex; justify-content: center; margin: 36px 0; }
.btn-block { width: 100%; max-width: 640px; justify-content: center; }

.app-brandline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 1px; color: var(--white); margin-bottom: 40px;
}

/* ═══ STEP DOTS ═══ */
.step-dots {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 56px;
}
.step-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stone-light); transition: background 0.4s;
}
.step-dots .dot.active { background: var(--amber); }
.step-dots .dot.done { background: var(--white); }

/* ═══ PATH CARDS ═══ */
.path-cards {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 720px; margin: 24px auto 8px; text-align: left;
}
.path-card { cursor: pointer; }
.path-card.selected {
  border-color: var(--amber);
  background: rgba(200,147,90,0.05);
}
.path-card.selected .card-title { color: var(--white); }

/* ═══ TIME INPUT ═══ */
.time-wrap { display: flex; justify-content: center; margin: 24px 0 8px; }
.time-input {
  background: var(--charcoal); border: 1px solid var(--stone);
  color: var(--white); font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  padding: 18px 36px; outline: none; text-align: center;
  transition: border-color 0.3s;
  color-scheme: dark;
}
.time-input:focus { border-color: var(--amber-dim); }

/* ═══ AUTH ═══ */
.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.auth-input { width: 100%; border-radius: 2px; }
.auth-alt {
  font-size: 13px; font-weight: 300; color: var(--muted); margin-top: 28px;
}
.auth-alt a { color: var(--warm-gray); border-bottom: 1px solid var(--ash); transition: color 0.3s, border-color 0.3s; }
.auth-alt a:hover { color: var(--amber); border-color: var(--amber); }
.auth-error { color: var(--ember); margin-top: 20px; }

/* ═══ PROGRESS RING ═══ */
.ring-wrap {
  position: relative; width: min(420px, 80vw); margin: 48px auto 8px;
}
.ring { width: 100%; height: auto; transform: rotate(-90deg); }
.ring-track {
  fill: none; stroke: var(--stone); stroke-width: 2;
}
.ring-fill {
  fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 628.3; stroke-dashoffset: 628.3;
  transition: stroke-dashoffset 1.2s var(--ease-expo);
  filter: drop-shadow(0 0 6px rgba(200,147,90,0.35));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-pct {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300; color: var(--white); line-height: 1;
}
.ring-caption {
  font-size: 14px; font-weight: 300; color: var(--muted); margin-top: 10px;
}

/* ═══ STATS ═══ */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 56px 0; text-align: center;
}
.stat-card { padding: 40px 24px; }
.stat-card .card-label { margin-bottom: 20px; }
.stat-card .stat-num { font-size: 56px; }
.stat-card .stat-num.stat-amber { color: var(--amber); }
.stat-card .stat-num:not(.stat-amber) { color: var(--white); }
.stat-card .stat-label { margin-top: 10px; }

/* ═══ YEAR GRID ═══ */
.year-section { margin: 72px 0 0; }
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 5px; margin: 32px auto 0; max-width: 1100px;
}
.year-grid .day {
  aspect-ratio: 1; border-radius: 2px; background: var(--charcoal);
  transition: transform 0.2s var(--ease-quart), background 0.3s;
}
.year-grid .day:hover { transform: scale(1.4); }
.year-grid .day.done { background: var(--amber); }
.year-grid .day.missed { background: var(--stone); }
.year-grid .day.today { background: var(--white); box-shadow: 0 0 10px rgba(245,241,233,0.4); }

.year-legend {
  display: flex; justify-content: center; gap: 32px; margin-top: 28px;
  font-size: 13px; font-weight: 300; color: var(--muted);
}
.year-legend span { display: inline-flex; align-items: center; gap: 8px; }
.year-legend .lg {
  width: 10px; height: 10px; border-radius: 2px; display: inline-block;
}
.lg-done { background: var(--amber); }
.lg-missed { background: var(--stone); }
.lg-upcoming { background: var(--charcoal); border: 1px solid var(--stone); }

/* ═══ QUOTE ═══ */
.app-quote {
  border: none; margin: 90px auto 20px; max-width: 640px;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 300; font-style: italic; color: var(--muted); line-height: 1.6;
}

/* ═══ COMPLETED-TODAY STATE ═══ */
#completeBtn.done-today {
  background: transparent; color: var(--amber);
  border: 1px solid var(--amber-dim);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .app-page { padding: 120px 24px 80px; }
  .stats-grid { grid-template-columns: 1fr; }
  .year-grid { gap: 3px; grid-template-columns: repeat(auto-fill, minmax(10px, 1fr)); }
  .year-legend { flex-wrap: wrap; gap: 16px; }
}
