:root {
  color-scheme: light;
  --ink: #1b1f24;
  --muted: #6d7680;
  --soft: #f4f1ec;
  --accent: #4b7f74;
  --accent-strong: #2f5b52;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 20px 60px rgba(24, 35, 28, 0.18);
}

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

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(232, 219, 198, 0.7), transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(189, 215, 210, 0.7), transparent 55%),
    radial-gradient(circle at 50% 85%, rgba(214, 228, 211, 0.65), transparent 60%),
    linear-gradient(135deg, #fefbf6, #e9efe9 60%, #f7f2e8);
}

.page {
  min-height: 100vh;
  padding: 40px 20px 64px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.mist {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent 65%);
  filter: blur(0.5px);
  opacity: 0.8;
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
}

.mist-one {
  top: 6%;
  left: -4%;
}

.mist-two {
  bottom: 10%;
  right: -6%;
  animation-delay: 5s;
}

.card {
  width: min(520px, 92vw);
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 32px 30px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.app-title {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--accent-strong);
}

.header {
  display: grid;
  gap: 10px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.intent-input {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  border-bottom: 1px solid rgba(27, 31, 36, 0.1);
}

.intent-input::placeholder {
  color: rgba(27, 31, 36, 0.35);
}

.timer {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.time {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.timer-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preset {
  border: 1px solid rgba(47, 91, 82, 0.2);
  border-radius: 999px;
  padding: 8px 0;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}

.preset:hover:not(:disabled) {
  transform: translateY(-1px);
}

.preset.active {
  background: rgba(75, 127, 116, 0.2);
  border-color: rgba(47, 91, 82, 0.5);
  box-shadow: 0 10px 20px rgba(47, 91, 82, 0.15);
}

.preset:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fefaf3;
  box-shadow: 0 14px 30px rgba(47, 91, 82, 0.25);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-strong);
  border: 1px solid rgba(47, 91, 82, 0.2);
}

.checkin-log {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.checkin-title {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.checkin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkin-list span {
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-strong);
}

.checkin-list .empty {
  background: transparent;
  color: rgba(109, 118, 128, 0.8);
  padding: 0;
}

.report {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(247, 242, 232, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.report.active {
  opacity: 1;
  pointer-events: auto;
}

.report-card {
  width: min(460px, 90vw);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.report-card h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.report-intent {
  color: var(--muted);
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.report-summary .label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(27, 31, 36, 0.5);
}

.report-summary .value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  margin-top: 6px;
}

.report-list {
  display: grid;
  gap: 8px;
}

.report-list span {
  background: #f4f1ec;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.footer {
  position: absolute;
  bottom: 18px;
  font-size: 0.75rem;
  color: rgba(27, 31, 36, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  z-index: 1;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(8px);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 52px;
  }

  .card {
    padding: 24px 20px 26px;
    gap: 18px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .footer {
    bottom: 12px;
    padding: 0 12px;
    font-size: 0.7rem;
  }
}
