:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #6c625d;
  --paper: #fff9f2;
  --panel: #ffffff;
  --coral: #e95f4f;
  --coral-dark: #c94435;
  --mint: #4aa889;
  --sun: #f4b84f;
  --line: rgba(32, 33, 36, 0.12);
  --shadow: 0 24px 70px rgba(44, 32, 24, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(244, 184, 79, 0.28), transparent 30%),
    linear-gradient(145deg, #f7efe4 0%, #dceee6 48%, #f8d9cc 100%);
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone {
  width: min(100%, 410px);
  min-height: 720px;
  position: relative;
  overflow: hidden;
  border: 10px solid #222;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 8px;
  font-weight: 760;
}

.brand {
  color: var(--muted);
}

.names {
  color: var(--muted);
  font-size: 0.86rem;
  opacity: 0.72;
}

.screen {
  display: none;
  min-height: 650px;
  padding: 12px 20px 24px;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 14px;
}

.progress-dot {
  flex: 1;
  max-width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.15);
}

.progress-dot.active {
  background: var(--coral);
}

.slide {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.slide-visual {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(44, 32, 24, 0.13);
}

.message-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 205px;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 242, 0.98)),
    var(--panel);
  box-shadow: 0 16px 36px rgba(44, 32, 24, 0.1);
}

.slide h1,
.invite-card h1,
.calendar-head h1 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 9vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.slide p,
.invite-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 4.6vw, 1.35rem);
  line-height: 1.48;
  font-weight: 650;
}

.primary-button,
.secondary-button,
.ghost-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(233, 95, 79, 0.28);
}

.primary-button:active {
  transform: translateY(1px);
}

.secondary-button {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
}

.ghost-button {
  margin-top: 14px;
  color: var(--coral-dark);
  background: transparent;
}

.invite-screen {
  justify-content: space-between;
}

.invite-card {
  margin-top: 18px;
  padding: 16px 0;
}

.invite-text {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.invite-text p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.42;
  font-weight: 650;
}

.invite-text p:last-child {
  margin-bottom: 0;
}

.invite-text .question-line {
  margin: 16px 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.28;
  font-weight: 900;
}

.mini-label {
  display: inline-block;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-area {
  position: relative;
  min-height: 190px;
}

.answer {
  position: absolute;
  width: calc(50% - 8px);
}

.answer.yes {
  left: 0;
  bottom: 0;
}

.answer.no {
  right: 0;
  bottom: 0;
  transition: transform 160ms ease;
}

.calendar-screen {
  gap: 18px;
}

.calendar-head {
  padding-top: 30px;
}

.date-form {
  display: grid;
  gap: 14px;
}

.date-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.date-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

.saved-date {
  padding: 18px;
  border-radius: 8px;
  color: #214539;
  background: rgba(74, 168, 137, 0.18);
  line-height: 1.4;
}

@media (max-width: 460px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .screen {
    min-height: calc(100vh - 52px);
  }

  .slide-visual {
    min-height: min(40vh, 340px);
  }

  .message-card {
    min-height: 230px;
  }
}
