:root {
  --milk: #fffaf4;
  --cream: #fff1dd;
  --peach: #ffd9c8;
  --rose: #f5a8bd;
  --rose-deep: #c96d88;
  --lavender: #dcd1f3;
  --lavender-deep: #8a79b7;
  --ink: #543a45;
  --muted: #8c7179;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(201, 109, 136, 0.2);
  --shadow: 0 22px 70px rgba(155, 103, 120, 0.18);
  --soft-shadow: 0 14px 38px rgba(155, 103, 120, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--milk);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 217, 200, 0.75), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(220, 209, 243, 0.72), transparent 24rem),
    radial-gradient(circle at 52% 88%, rgba(245, 168, 189, 0.28), transparent 30rem),
    linear-gradient(135deg, #fffaf4 0%, #fff0e8 42%, #f7ecff 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart,
.spark,
.flower {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(201, 109, 136, 0.42);
  filter: drop-shadow(0 10px 16px rgba(201, 109, 136, 0.16));
  animation: floaty 9s ease-in-out infinite;
}

.heart {
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.spark,
.flower {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.heart-one {
  left: 7%;
  top: 18%;
}

.heart-two {
  right: 10%;
  top: 62%;
  animation-delay: -2.4s;
}

.heart-three {
  left: 28%;
  bottom: 8%;
  animation-delay: -5s;
}

.spark-one {
  left: 78%;
  top: 14%;
  color: rgba(138, 121, 183, 0.45);
  animation-delay: -1.2s;
}

.spark-two {
  left: 14%;
  bottom: 22%;
  color: rgba(255, 180, 143, 0.55);
  animation-delay: -4s;
}

.flower-one {
  right: 24%;
  bottom: 18%;
  color: rgba(201, 109, 136, 0.34);
  animation-delay: -3.2s;
}

.flower-two {
  left: 48%;
  top: 7%;
  color: rgba(138, 121, 183, 0.34);
  animation-delay: -6s;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.steps {
  position: fixed;
  z-index: 12;
  top: 22px;
  left: 50%;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.step-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(201, 109, 136, 0.25);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease, transform 220ms ease;
}

.step-dot.is-active {
  width: 30px;
  background: linear-gradient(135deg, var(--rose), var(--lavender-deep));
}

.step-dot:hover {
  transform: translateY(-1px);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 94px 28px 40px;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease;
}

.screen.is-active {
  position: relative;
  height: auto;
  overflow: visible;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.content {
  width: min(100%, 1080px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 246, 0.58)),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.content.narrow {
  width: min(100%, 780px);
}

.content.wide {
  width: min(100%, 1180px);
}

.center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.8rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h3 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1;
}

.lead,
.section-head p,
.promise {
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.62;
}

.lead {
  max-width: 640px;
  margin: 22px auto 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 14px 0 0;
}

.hint {
  display: inline-block;
  padding: 14px 18px;
  border: 1px solid rgba(201, 109, 136, 0.17);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.62);
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.footer-actions {
  justify-content: space-between;
}

.btn {
  min-height: 52px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(155, 103, 120, 0.12);
  transition: transform 210ms ease, box-shadow 210ms ease, filter 210ms ease, background 210ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(155, 103, 120, 0.18);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #e88ba5, #c987d5);
}

.btn.soft {
  background: rgba(255, 255, 255, 0.68);
  color: var(--rose-deep);
}

.btn.ghost {
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.runaway {
  transition:
    left 420ms cubic-bezier(0.2, 0.9, 0.25, 1.15),
    top 420ms cubic-bezier(0.2, 0.9, 0.25, 1.15),
    background 210ms ease,
    box-shadow 210ms ease,
    filter 210ms ease;
  will-change: left, top;
}

.runaway.is-floating {
  position: fixed;
  inset: auto;
  z-index: 20;
  width: auto;
  min-width: 78px;
  margin: 0;
}

.runaway-note,
.copy-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--rose-deep);
  font-weight: 800;
}

.choice-grid,
.route-grid,
.time-grid,
.calendar {
  display: grid;
  gap: 16px;
}

.choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-card,
.route-card,
.date-card,
.time-card,
.summary-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--soft-shadow);
}

.choice-card,
.route-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.choice-card {
  min-height: 190px;
  padding: 22px;
  text-align: left;
}

.choice-card::after,
.route-card::after {
  position: absolute;
  inset: auto 18px 16px auto;
  content: "♡";
  color: var(--rose);
  font-size: 1.7rem;
  opacity: 0;
  transform: scale(0.65) rotate(-12deg);
  transition: opacity 240ms ease, transform 240ms ease;
}

.choice-card:hover,
.route-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 109, 136, 0.36);
  box-shadow: 0 20px 44px rgba(155, 103, 120, 0.16);
}

.choice-card.is-selected,
.route-card.is-selected {
  background: linear-gradient(145deg, rgba(255, 242, 247, 0.92), rgba(245, 238, 255, 0.78));
  border-color: rgba(201, 109, 136, 0.54);
  transform: translateY(-3px) scale(1.02);
}

.choice-card.is-selected::after,
.route-card.is-selected::after {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.choice-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: 1.3rem;
}

.choice-card span {
  color: var(--muted);
  line-height: 1.45;
}

.route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-card {
  display: flex;
  min-height: 100%;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.route-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.route-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  border-radius: 16px;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 168, 189, 0.28), rgba(220, 209, 243, 0.48));
  font-size: 1.4rem;
}

.route-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.78);
  color: var(--rose-deep);
  font-size: 0.94rem;
  font-weight: 800;
}

.route-line {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.route-line::before {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(var(--rose), var(--lavender-deep));
  content: "";
}

.route-line span {
  display: block;
  margin: 0 0 8px;
}

.route-line span::before {
  content: "•";
  color: var(--rose-deep);
  font-weight: 900;
  margin-right: 8px;
}

.route-note,
.route-restaurants {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.route-links,
.restaurant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-link,
.restaurant-link,
.summary-row a {
  color: var(--rose-deep);
  font-weight: 900;
  text-decoration: none;
}

.map-link,
.restaurant-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 109, 136, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.8);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.map-link:hover,
.restaurant-link:hover,
.restaurant-link.is-selected {
  border-color: rgba(201, 109, 136, 0.48);
  background: rgba(255, 240, 247, 0.92);
  transform: translateY(-1px);
}

.restaurant-list {
  margin-top: 10px;
}

.restaurant-empty {
  color: var(--muted);
  font-weight: 800;
}

.route-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.calendar {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-month {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--rose-deep);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: capitalize;
}

.calendar-month:not(:first-child) {
  margin-top: 16px;
}

.calendar-weekday {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-spacer {
  min-height: 58px;
}

.date-card,
.time-card {
  min-height: 58px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, opacity 200ms ease;
}

.date-card {
  display: grid;
  padding: 10px 8px;
  place-items: center;
  color: var(--ink);
  font-weight: 900;
}

.date-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.date-card[disabled] {
  cursor: not-allowed;
  opacity: 0.34;
  filter: grayscale(0.35);
}

.date-card:not([disabled]):hover,
.time-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 109, 136, 0.45);
}

.date-card.is-selected,
.time-card.is-selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #e88ba5, #c987d5);
}

.date-card.is-selected small {
  color: rgba(255, 255, 255, 0.82);
}

.time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-card {
  padding: 14px;
  color: var(--rose-deep);
  font-weight: 900;
}

.custom-time {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.custom-time.is-hidden {
  display: none;
}

.custom-time input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(201, 109, 136, 0.28);
  border-radius: 18px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.custom-time input:focus {
  border-color: rgba(201, 109, 136, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 168, 189, 0.18);
}

.weather-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(201, 109, 136, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
}

.weather-card.is-muted {
  opacity: 0.76;
}

.weather-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 217, 200, 0.7), rgba(220, 209, 243, 0.55));
  font-size: 1.7rem;
}

.weather-card strong {
  display: block;
  color: var(--rose-deep);
  font-weight: 900;
}

.weather-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.final-screen .content {
  position: relative;
  overflow: hidden;
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(245, 168, 189, 0.65) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(220, 209, 243, 0.72) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(255, 217, 200, 0.9) 0 2px, transparent 3px);
  background-position: 8% 18%, 84% 26%, 52% 10%;
  background-size: 120px 120px, 150px 150px, 110px 110px;
  opacity: 0.42;
  animation: shimmer 8s linear infinite;
}

.summary-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin: 26px auto 0;
  padding: 22px;
  border-radius: 24px;
  text-align: left;
}

.summary-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(201, 109, 136, 0.14);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span:first-child {
  color: var(--rose-deep);
  font-weight: 900;
}

.summary-row span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.promise {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 24px auto 0;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.045);
    filter: brightness(1.05);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }

  50% {
    transform: translate3d(12px, -24px, 0) rotate(6deg);
  }
}

@keyframes shimmer {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(120px);
  }
}

@media (max-width: 980px) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid,
  .planner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .steps {
    top: 12px;
  }

  .screen {
    padding: 72px 12px 22px;
    align-items: start;
  }

  .content {
    padding: 24px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.85rem, 16vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.12rem, 12vw, 3.35rem);
  }

  .lead,
  .section-head p,
  .promise {
    font-size: 1rem;
  }

  .hero-actions,
  .footer-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .btn {
    width: 100%;
    min-height: 58px;
  }

  .choice-grid,
  .route-grid,
  .time-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 142px;
  }

  .route-card {
    padding: 20px;
  }

  .calendar {
    gap: 8px;
  }

  .date-card {
    min-height: 54px;
    padding: 8px 4px;
    border-radius: 14px;
  }

  .date-spacer {
    min-height: 54px;
  }

  .date-card small {
    font-size: 0.66rem;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
