:root {
  --ink: #2e2230;
  --muted: #7b6378;
  --cream: #fff9f4;
  --pink: #ef5f9f;
  --rose: #ffd6e7;
  --mint: #b8eadb;
  --sun: #ffe08a;
  --blue: #95d8ff;
  --line: rgba(127, 76, 108, 0.18);
  --shadow: 0 32px 90px rgba(121, 38, 81, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 84% 16%, rgba(149, 216, 255, 0.72) 0 10%, transparent 11%),
    linear-gradient(135deg, #ffe6f0 0%, #ffd9e9 35%, #fff0bf 65%, #d2f4e7 100%);
  overflow-x: hidden;
}

.question-page {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px 18px;
}

.question-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.question-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  text-align: center;
  padding: clamp(28px, 7vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 249, 244, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.question-card h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(34px, 8vw, 74px);
  line-height: 0.98;
}

.question-actions {
  position: relative;
  width: min(284px, 100%);
  min-height: 120px;
  margin: 34px auto 0;
}

.question-yes,
.question-no {
  min-width: 128px;
  min-height: 54px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(46, 34, 48, 0.14);
}

.question-yes {
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #5ec6aa);
}

.question-no {
  position: absolute;
  left: 156px;
  top: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition:
    left 180ms ease,
    top 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.question-answer {
  min-height: 24px;
  margin: 0;
  color: var(--pink);
  font-weight: 900;
}

.success-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  text-align: center;
  padding: clamp(28px, 7vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 249, 244, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.success-card h1 {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.98;
}

.gif-frame {
  width: min(360px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px dashed rgba(127, 76, 108, 0.26);
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.gif-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-teaser {
  max-width: 420px;
  margin: 22px auto 14px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.video-link {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #5ec6aa);
  box-shadow: 0 14px 28px rgba(121, 38, 81, 0.18);
  font-weight: 900;
  text-decoration: none;
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hearts span {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: rgba(243, 110, 170, 0.58);
  animation: float 9s linear infinite;
  opacity: 0;
}

.hearts span::before,
.hearts span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.hearts span::before {
  left: -9px;
}

.hearts span::after {
  top: -9px;
}

.hearts span:nth-child(1) { left: 8%; animation-delay: 0s; }
.hearts span:nth-child(2) { left: 17%; animation-delay: 2.8s; background: rgba(255, 215, 117, 0.68); }
.hearts span:nth-child(3) { left: 29%; animation-delay: 1.2s; transform: rotate(45deg) scale(0.7); }
.hearts span:nth-child(4) { left: 42%; animation-delay: 4.4s; background: rgba(191, 234, 215, 0.76); }
.hearts span:nth-child(5) { left: 54%; animation-delay: 0.8s; }
.hearts span:nth-child(6) { left: 63%; animation-delay: 3.2s; transform: rotate(45deg) scale(0.65); }
.hearts span:nth-child(7) { left: 71%; animation-delay: 5.6s; background: rgba(255, 215, 117, 0.62); }
.hearts span:nth-child(8) { left: 82%; animation-delay: 2s; }
.hearts span:nth-child(9) { left: 91%; animation-delay: 6s; background: rgba(191, 234, 215, 0.72); }
.hearts span:nth-child(10) { left: 35%; animation-delay: 6.8s; }
.hearts span:nth-child(11) { left: 77%; animation-delay: 7.5s; transform: rotate(45deg) scale(0.8); }
.hearts span:nth-child(12) { left: 5%; animation-delay: 7.9s; background: rgba(255, 215, 117, 0.72); }

.browser-shell {
  position: relative;
  width: min(1100px, 100%);
  min-height: 610px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 249, 244, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
  outline: 8px solid rgba(255, 255, 255, 0.22);
}

.browser-bar {
  display: grid;
  grid-template-columns: 76px 1fr 46px;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6b7f;
}

.dots i:nth-child(2) {
  background: #ffd66f;
}

.dots i:nth-child(3) {
  background: #60d394;
}

.address {
  min-width: 0;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tiny-action {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff93bf);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(239, 95, 159, 0.28);
}

.planner {
  display: grid;
  grid-template-columns: 1fr 1.08fr 0.92fr;
  gap: 22px;
  padding: 34px;
  min-height: 560px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 224, 138, 0.5) 0 10%, transparent 11%),
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
}

.intro,
.panel,
.summary {
  min-width: 0;
}

.script {
  margin: 10px 0 4px;
  font-family: Pacifico, cursive;
  font-size: 42px;
  color: var(--pink);
  text-shadow: 0 8px 24px rgba(239, 95, 159, 0.22);
}

h1 {
  margin: 0;
  max-width: 360px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 310px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.phone-card {
  width: min(260px, 100%);
  margin-top: 36px;
  padding: 20px 16px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(149, 216, 255, 0.16), transparent 40%),
    #231b26;
  box-shadow: 0 20px 38px rgba(54, 32, 57, 0.2);
}

.bubble {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
}

.incoming {
  color: #f4eef5;
  background: #3b3040;
}

.outgoing {
  margin-left: auto;
  color: #372538;
  background: var(--rose);
}

.panel {
  display: grid;
  gap: 16px;
  align-self: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 246, 251, 0.76));
  box-shadow: 0 18px 40px rgba(121, 38, 81, 0.12);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-row {
  display: grid;
  gap: 8px;
}

label,
.choice-group p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input[type="text"],
input[type="date"],
input[type="time"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
}

input:focus {
  border-color: rgba(243, 110, 170, 0.65);
  box-shadow: 0 0 0 4px rgba(243, 110, 170, 0.15);
}

.choice-group {
  display: grid;
  gap: 10px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

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

.food-options[hidden] {
  display: none;
}

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

.custom-vibe[hidden] {
  display: none;
}

.choice {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #fff7fb);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.choice:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 95, 159, 0.42);
  box-shadow: 0 10px 20px rgba(121, 38, 81, 0.12);
}

.choice.selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), #8ccff5);
  box-shadow: 0 10px 22px rgba(243, 110, 170, 0.28);
}

.summary {
  display: grid;
  align-items: center;
}

.ticket {
  position: relative;
  padding: 26px 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(135deg, #ef5f9f, #8ccff5 54%, #5ec6aa);
  box-shadow: 0 24px 54px rgba(49, 84, 77, 0.28);
  overflow: hidden;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
}

.ticket::before {
  top: 42%;
}

.ticket::after {
  right: -16px;
  left: auto;
  top: 42%;
}

.ticket-top {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h2 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}

dt {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.send-button,
.copy-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(46, 34, 48, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.copy-button {
  margin-top: 10px;
  color: #fff;
  background: rgba(46, 34, 48, 0.24);
  box-shadow: none;
}

.send-button:hover,
.copy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(46, 34, 48, 0.16);
}

.copied {
  min-height: 20px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

@keyframes float {
  0% {
    top: 105%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    top: -15%;
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .stage {
    padding: 18px 12px;
    align-items: start;
  }

  .browser-shell {
    min-height: 0;
  }

  .browser-bar {
    grid-template-columns: 58px 1fr 38px;
    gap: 8px;
    padding: 0 10px;
  }

  .planner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .script {
    font-size: 36px;
  }

  .phone-card {
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .stage {
    display: block;
    padding: 0;
  }

  .question-stage {
    padding: 14px;
  }

  .success-stage {
    padding: 18px;
  }

  .success-card {
    padding: 30px 22px;
  }

  .success-card .script {
    font-size: 42px;
    line-height: 1;
  }

  .success-card h1 {
    font-size: 44px;
    margin-bottom: 24px;
  }

  .gif-frame {
    width: min(280px, 100%);
  }

  .question-actions {
    width: min(248px, 100%);
    min-height: 132px;
  }

  .question-yes,
  .question-no {
    min-width: 112px;
  }

  .question-no {
    left: 136px;
  }

  .browser-shell {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .browser-bar {
    display: none;
  }

  .planner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 100vh;
    padding: 22px 18px 110px;
    background-size: 26px 26px;
  }

  .intro {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .intro .script {
    margin: 0 0 2px;
    font-size: 40px;
    line-height: 1;
  }

  .intro h1 {
    max-width: 330px;
    font-size: 48px;
    line-height: 0.94;
  }

  .lead {
    max-width: 300px;
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.42;
  }

  .phone-card {
    width: 100%;
    margin-top: 24px;
    padding: 18px 16px;
  }

  .bubble {
    font-size: 14px;
  }

  .panel,
  .summary {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .panel {
    gap: 18px;
    align-self: start;
    padding: 22px;
    background: rgba(255, 255, 255, 0.9);
  }

  label,
  .choice-group p {
    font-size: 13px;
  }

  input[type="text"],
  input[type="date"],
  input[type="time"] {
    min-height: 54px;
    font-size: 17px;
  }

  .choice {
    min-height: 56px;
    font-size: 16px;
  }

  .ticket {
    padding: 24px 22px;
  }

  h2 {
    font-size: 28px;
  }

  dl div {
    gap: 12px;
  }

  .field-grid,
  .choices {
    grid-template-columns: 1fr;
  }
}
