:root {
  --bg: #000000;
  --panel: #000;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #f97316;
  --accent-2: #22d3ee;
  --lived: rgba(173, 122, 104, 0.802);
  --current: #08ecf8;
  --remaining: rgba(69, 181, 54, 0.7);
  --border: #2f2f2f;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --font-body: 'Inter', sans-serif;
  --cell-size: 13px;
  --cell-gap: 4px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  padding: 32px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0b1020;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

.site-title {
  margin: 2px 0 0;
  font-size: 1.75rem;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}

.hero-copy h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label { font-weight: 600; }

input, button {
  font: inherit;
}

input[type="date"],
input[type="number"] {
  background: #000;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

input:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

button.primary {
  background: #000;
  color: #fff;
  font-weight: 700;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
button.primary:active { transform: translateY(0); }
button.primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.privacy-note {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 0.9rem;
}

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

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 12px 16px;
  color: var(--muted);
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
}

.legend-swatch.lived { background: var(--lived); }
.legend-swatch.current { background: var(--current); }
.legend-swatch.remaining { background: var(--remaining); }

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-section .card {
  padding: 18px;
}

.weeks-grid {
  min-height: 320px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: var(--cell-gap);
  justify-content: center;
  align-content: start;
  padding: 14px;
}

.weeks-grid.placeholder {
  place-items: center;
  padding: 28px;
}

.weeks-grid .placeholder-text {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.week {
  width: var(--cell-size);
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: var(--remaining);
  transition: transform 120ms ease, filter 120ms ease;
}

.week.lived { background: var(--lived); }
.week.current {
  background: var(--current);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px rgba(34, 211, 238, 0.32);
}

.faq h3 { margin-top: 0; }
.faq ul { margin: 0; padding-left: 18px; color: var(--muted); }
.faq li { margin-bottom: 8px; }

.page-footer {
  margin: 28px auto;
  max-width: 1200px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  :root { --cell-gap: 3px; }
  body { padding: 20px; }
  .page-header { flex-direction: row; }
  .logo-mark { width: 40px; height: 40px; }
}
