@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --ink: #111827;
  --muted: #4b5563;
  --mist: #e5e7eb;
  --card: rgba(255, 255, 255, 0.84);
  --teal: #0891b2;
  --teal-dark: #0e7490;
  --amber: #f59e0b;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #ecfeff 0%, #f8fafc 45%, #fffbeb 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  filter: blur(20px);
  pointer-events: none;
}

.bg-shape-a {
  top: -95px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--amber), white 38%);
}

.bg-shape-b {
  right: -70px;
  bottom: 8%;
  width: 260px;
  height: 260px;
  border-radius: 30px;
  transform: rotate(14deg);
  background: color-mix(in oklab, var(--teal), white 55%);
}

.app-shell {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 30px;
  display: grid;
  gap: 16px;
}

.hero {
  animation: rise 480ms ease both;
}

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

h1 {
  margin: 4px 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 0.95;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 14px;
  animation: rise 700ms ease both;
}

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

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.today-display {
  margin: 0;
  min-height: 44px;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  background: #fff;
  font-weight: 500;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

button {
  border: 0;
  min-height: 44px;
  font: inherit;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 145, 178, 0.28);
}

h2 {
  margin: 0;
  font-size: 1.1rem;
}

.target-summary {
  margin: 10px 0 0;
  font-weight: 500;
}

.target-week-range {
  margin: 2px 0 8px;
  color: var(--muted);
}

.week-days {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.week-days li {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.week-days strong {
  font-size: 0.95rem;
}

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

@media (max-width: 460px) {
  .control-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 2.8rem);
  }
}
