:root {
  --ink: #1a1a1a;
  --ash: #e8e3d7;
  --carbon: #111318;
  --steel: #262c35;
  --fire: #ff5a2a;
  --ember: #ff9f45;
  --mint: #7fc6a4;
  --line: #3f4651;
  --panel: rgba(19, 22, 28, 0.85);
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Crimson Pro", Georgia, serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 90, 42, 0.22), transparent 36%),
    radial-gradient(circle at 90% 20%, rgba(127, 198, 164, 0.2), transparent 30%),
    linear-gradient(135deg, #121317 10%, #181c23 50%, #0e1014 100%);
  color: var(--ash);
  min-height: 100vh;
  line-height: 1.5;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(transparent 98%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(90deg, transparent 98%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 8px 8px, 8px 8px;
}

.hero {
  position: relative;
  padding: 3.2rem 1.2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--fire), var(--ember));
  color: #121212;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero__title {
  margin: 0.75rem 0 0.45rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.hero__title span:last-child {
  color: var(--fire);
}

.hero__subtitle {
  margin: 0;
  max-width: 54ch;
  color: #d7d0bf;
  font-size: 1.08rem;
}

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

.hero__quick article {
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.65);
  border-radius: 12px;
}

.hero__quick .label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a8b3;
  font-size: 0.7rem;
}

.hero__quick .value {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  color: #fff2d7;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 2.2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.panel__head {
  margin-bottom: 0.75rem;
}

.panel__head h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.03em;
  font-size: 2rem;
}

.panel__head p {
  margin: 0.1rem 0 0;
  color: #bac2cf;
}

.panel--focus {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.panel--focus h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.panel--focus p {
  margin: 0.2rem 0 0;
  color: #d9dfeb;
}

.actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
  background: linear-gradient(180deg, var(--ember), var(--fire));
  color: #151515;
  cursor: pointer;
}

button.ghost {
  background: #232937;
  color: #d6ddeb;
  border: 1px solid #394051;
}

button:hover {
  filter: brightness(1.06);
}

.day-stack {
  display: grid;
  gap: 0.65rem;
}

.day-panel {
  border: 1px solid #3a4253;
  border-radius: 12px;
  background: rgba(15, 18, 24, 0.88);
  overflow: clip;
}

.day-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.day-panel .summary-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.22rem;
  color: #ffe2bf;
}

.day-panel .summary-plan {
  color: #aeb7c7;
  font-size: 0.92rem;
}

.day-panel .summary-progress {
  font-size: 0.82rem;
  color: #9ee8c5;
  white-space: nowrap;
}

.day-panel .content {
  border-top: 1px solid #303949;
  padding: 0.72rem 0.8rem 0.84rem;
}

.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #dbe1eb;
}

.task-item input {
  margin-top: 0.15rem;
  accent-color: var(--mint);
}

.rule-list {
  margin: 0;
  padding-left: 1rem;
}

.rule-list li {
  margin: 0.28rem 0;
}

.grocery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.grocery-group {
  border: 1px solid #3a4253;
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(12, 15, 20, 0.92);
}

.grocery-group h3 {
  margin: 0 0 0.5rem;
  color: #ffcd9c;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
}

.grocery-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
}

.grocery-item input {
  accent-color: var(--mint);
}

.checkin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.7rem;
}

.checkin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.96rem;
}

.checkin-form .wide {
  grid-column: 1 / -1;
}

input,
textarea {
  border: 1px solid #464f60;
  border-radius: 10px;
  background: #151922;
  color: #e9edf5;
  padding: 0.55rem 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(255, 90, 42, 0.45);
  outline-offset: 1px;
}

.save-status {
  margin: 0.65rem 0 0;
  color: #9bf0c7;
  min-height: 1.2em;
}

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem 2rem;
  color: #b5bcc8;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.6s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}
.reveal:nth-child(3) {
  animation-delay: 0.14s;
}
.reveal:nth-child(4) {
  animation-delay: 0.2s;
}
.reveal:nth-child(5) {
  animation-delay: 0.26s;
}
.reveal:nth-child(6) {
  animation-delay: 0.32s;
}
.reveal:nth-child(7) {
  animation-delay: 0.38s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .panel--focus {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkin-form {
    grid-template-columns: 1fr;
  }
}
