:root {
  --bg: #061124;
  --panel: #081832;
  --panel-2: #091a35;
  --pink: #ff4f7b;
  --pink-2: #ff8fad;
  --text: #ffffff;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 32px 120px rgba(0, 0, 0, 0.38);
  --font: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

::selection {
  background: rgba(255, 79, 123, 0.32);
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.hero {
  position: relative;
  padding: 16px 0 56px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 96px;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  background: rgba(255, 79, 123, 0.2);
  filter: blur(120px);
  transform: translateX(-50%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pink);
  box-shadow: 0 0 24px rgba(255, 79, 123, 0.65);
}

.brand-mark svg {
  fill: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ff7a9c;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 640px;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 48px;
  padding-top: 40px;
}

.hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
}

.pink {
  color: #ff5f86;
}

.hero p {
  max-width: 560px;
  margin: 32px 0 0;
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  max-width: 380px;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  padding: 0 28px;
  box-shadow: 0 0 30px rgba(255, 79, 123, 0.42);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  background: #ff6e92;
  transform: translateY(-3px);
}

.btn:disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  transform: none;
}

.text-link {
  width: max-content;
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
  padding-bottom: 4px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  border-color: #ff7a9c;
  color: #ff9ab3;
}

.phone-visual {
  position: relative;
  width: min(100%, 560px);
  height: 620px;
  margin-inline: auto;
}

.phone-glow {
  position: absolute;
  left: 20%;
  top: 12%;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(255, 79, 123, 0.35);
  filter: blur(78px);
}

.qr-card {
  position: absolute;
  left: 12%;
  top: 10%;
  width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: #fff;
  color: #071226;
  padding: 12px;
  box-shadow: 0 0 70px rgba(255, 91, 151, 0.55);
  transform: rotate(-7deg);
  animation: float-qr 5.5s ease-in-out infinite;
}

.qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}

.qr-grid span {
  aspect-ratio: 1;
  border-radius: 2px;
}

.qr-grid .on {
  background: #071226;
}

.phone-card {
  position: absolute;
  right: 14%;
  top: 24%;
  z-index: 2;
  width: 235px;
  border: 9px solid #090f1f;
  border-radius: 34px;
  background: #090f1f;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.55);
  transform: rotate(14deg);
  animation: float-phone 6s ease-in-out infinite;
}

.phone-screen {
  overflow: hidden;
  border-radius: 24px;
  background: #101b32;
  padding: 10px;
}

.phone-notch {
  width: 80px;
  height: 16px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #000;
}

.phone-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #1a2a48;
}

.phone-photo img,
.photo-frame img,
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 18, 38, 0.85), rgba(7, 18, 38, 0.12), transparent);
}

.phone-photo .heart-icon,
.phone-photo .spark-icon {
  position: absolute;
  z-index: 2;
  top: 20px;
  width: 20px;
  height: 20px;
}

.phone-photo .heart-icon {
  right: 20px;
  color: var(--pink);
  fill: currentColor;
}

.phone-photo .spark-icon {
  left: 20px;
}

.counter-badge {
  position: absolute;
  z-index: 2;
  inset-inline: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(7, 18, 38, 0.72);
  padding: 12px;
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0;
  color: var(--pink-2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.phone-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.phone-icons span {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--pink-2);
}

.floating-heart {
  position: absolute;
  z-index: 3;
  color: #ff5d88;
  filter: drop-shadow(0 0 28px rgba(255, 91, 136, 0.95));
}

.floating-heart svg {
  fill: currentColor;
}

.floating-heart.one {
  right: 5%;
  top: 15%;
  color: #ff9fd7;
  animation: float-heart-a 3.8s ease-in-out infinite;
}

.floating-heart.two {
  right: 10%;
  bottom: 15%;
  animation: float-heart-b 4.2s ease-in-out infinite;
}

.section {
  padding: 80px 0;
}

.steps-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}

.section h2 {
  margin: 14px 0 0;
  font-size: clamp(2.7rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 0.96;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 14px;
  font-weight: 950;
}

.card h3 {
  margin: 48px 0 0;
  font-size: 20px;
}

.card p {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.faq {
  width: min(100% - 40px, 896px);
  margin-inline: auto;
}

.faq-list {
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.faq-item {
  padding: 24px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.cta {
  padding: 96px 20px;
  text-align: center;
}

.cta h2 {
  max-width: 760px;
  margin: 24px auto 0;
}

.cta .btn {
  margin-top: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.demo-frame {
  display: flex;
  width: min(100%, 1120px);
  height: calc(100vh - 64px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-header {
  flex-shrink: 0;
  padding: 24px 40px 0;
}

.progress {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}

.progress span {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.progress span::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--pink);
  transition: width 0.5s ease;
}

.progress span.done::before {
  width: 100%;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.icon-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.icon-btn:disabled {
  opacity: 0.35;
}

.demo-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 40px 0;
}

.demo-body > [data-demo-body] {
  display: flex;
  min-height: 0;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
  scrollbar-width: none;
}

.demo-body > [data-demo-body]::-webkit-scrollbar {
  display: none;
}

.slide {
  display: none;
  min-height: 0;
  width: 100%;
  flex: 1;
  animation: slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active {
  display: flex;
}

.slide.center {
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  min-width: 0;
  text-align: center;
}

.slide.center > div {
  width: 100%;
  max-width: 920px;
  min-width: 0;
  margin-inline: auto;
}

.slide-grid {
  align-items: center;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
}

.slide-grid > div {
  min-width: 0;
}

.slide-grid > div:last-child {
  justify-content: center !important;
}

.slide-grid.active {
  display: grid;
}

.slide-grid.final-slide.active,
.slide-grid.memory-slide.active {
  align-items: center;
}

.slide h1,
.slide h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 950;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.slide h1 strong {
  color: var(--pink);
  font-weight: inherit;
}

.slide p {
  color: #cbd5e1;
  font-weight: 700;
  line-height: 1.65;
}

.slide.center p {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px auto 0;
}

.slide.center .text-link {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 6px;
}

.spotify-embed {
  width: min(100%, 520px);
  height: 152px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
}

.quiz-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.option-list {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  padding: 14px 20px;
  text-align: left;
  font-weight: 950;
}

.option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.option.correct {
  background: #34d399;
  color: #052014;
}

.option.wrong {
  background: #ff5f86;
}

.option.show-correct {
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(52, 211, 153, 0.14);
  color: #a7f3d0;
}

.feedback {
  display: none;
  margin-top: 20px;
  border: 1px solid rgba(255, 143, 173, 0.3);
  border-radius: 16px;
  background: rgba(255, 79, 123, 0.1);
  padding: 18px;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.6;
}

.feedback.ok {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #d1fae5;
}

.polaroid {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 56px), 390px);
  border-radius: 10px;
  background: #fff;
  color: var(--bg);
  padding: 16px 16px 56px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
  transform-origin: center;
}

.polaroid::before,
.polaroid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.2);
  opacity: 0.92;
}

.polaroid::before {
  z-index: -2;
  transform: translate(-12px, 14px) rotate(-4deg);
}

.polaroid::after {
  z-index: -1;
  transform: translate(12px, 10px) rotate(4deg);
}

.polaroid > * {
  position: relative;
  z-index: 1;
}

.polaroid .photo-frame,
.polaroid > p {
  background: #fff;
}

.polaroid.left {
  transform: rotate(-3deg);
}

.polaroid.right {
  transform: rotate(2deg);
}

.photo-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e8f0;
}

.polaroid p {
  margin: 16px 0 0;
  color: rgba(6, 17, 36, 0.78);
  text-align: center;
  font-weight: 950;
  text-transform: lowercase;
}

.envelope-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bg);
  padding: 20px;
}

.env-back,
.env-front,
.env-cover {
  position: absolute;
  inset-inline: 28px;
  bottom: 40px;
  height: 160px;
  border-radius: 0 0 30px 30px;
}

.env-back {
  background: #162746;
}

.env-front {
  z-index: 3;
  background: linear-gradient(30deg, #243a62 50%, #1d3155 50%);
}

.env-cover {
  z-index: 4;
  bottom: 150px;
  height: 112px;
  border-radius: 30px 30px 0 0;
  background: var(--pink);
  transform-origin: bottom;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.letter-open .env-cover {
  transform: perspective(900px) rotateX(180deg) translateY(10px);
}

.letter-paper {
  position: relative;
  z-index: 2;
  max-width: 390px;
  margin-inline: auto;
  border-radius: 16px;
  background: #fff;
  color: var(--bg);
  padding: 20px;
  opacity: 0;
  transform: translateY(118px) scale(0.95);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.letter-open .letter-paper {
  z-index: 7;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.letter-open .env-front,
.letter-open .env-gradient {
  opacity: 0.72;
}

.letter-paper strong {
  color: var(--pink);
}

.letter-paper p {
  margin: 12px 0 0;
  color: var(--bg);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

.env-gradient {
  position: absolute;
  z-index: 5;
  inset-inline: 28px;
  bottom: 40px;
  height: 160px;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(to top, #162746, rgba(22, 39, 70, 0.88), transparent);
  pointer-events: none;
}

.open-envelope {
  position: absolute;
  z-index: 6;
  inset-inline: 48px;
  bottom: 80px;
}

.letter-open .open-envelope {
  display: none;
}

.final-photo-wrap {
  display: grid;
  position: relative;
  width: min(100%, 360px);
  max-width: calc(100% - 40px);
  gap: 18px;
  margin-inline: auto;
  justify-items: center;
}

.final-photo-wrap .polaroid {
  width: min(100%, 340px);
  margin-inline: auto;
}

.final-counter {
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(6, 17, 36, 0.78);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.final-counter p {
  margin: 0;
}

.final-counter strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.final-counter-inline {
  margin-top: 20px;
}

.demo-footer {
  width: min(100%, 360px);
  max-width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
  padding: 20px 0 max(20px, env(safe-area-inset-bottom));
}

.demo-footer .btn {
  width: 100%;
  border-radius: 16px;
}

.form-page {
  min-height: 100vh;
  padding: 24px 20px 40px;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 950;
}

.form-intro {
  padding: 40px 0;
}

.form-intro h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 950;
  line-height: 1.08;
}

.form-intro p {
  max-width: 690px;
  color: #cbd5e1;
  font-weight: 700;
  line-height: 1.75;
}

.form {
  display: grid;
  gap: 20px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  padding: 20px;
}

.form-section h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.form-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-title-row h2 {
  margin: 0;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.input,
textarea.input,
select.input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.2s ease;
}

textarea.input {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.input:focus {
  border-color: var(--pink-2);
}

.input::placeholder {
  color: #64748b;
}

select.input option {
  background: var(--bg);
}

.file-box {
  display: flex;
  min-height: 48px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(255, 143, 173, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
}

.file-box.center {
  min-height: 56px;
  justify-content: center;
  font-weight: 950;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.error {
  display: none;
  border: 1px solid rgba(255, 143, 173, 0.3);
  border-radius: 16px;
  background: rgba(255, 79, 123, 0.1);
  padding: 16px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
}

.spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.loading .spinner {
  display: block;
}

.loading .submit-icon {
  display: none;
}

.thanks-main {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thanks-card {
  width: min(100%, 680px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.thanks-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  border-radius: 16px;
  background: var(--pink);
}

.thanks-card h1 {
  margin: 24px 0 0;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.thanks-card > p {
  max-width: 570px;
  margin: 16px auto 0;
  color: #cbd5e1;
  font-weight: 700;
  line-height: 1.7;
}

.link-box {
  display: none;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
  text-align: left;
}

.link-box a {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.qr-download-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.qr-download-card img {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.qr-download-card .btn {
  min-height: 48px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: #e2e8f0;
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

@keyframes float-qr {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}

@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(14deg); }
  50% { transform: translateY(12px) rotate(11deg); }
}

@keyframes float-heart-a {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.12); }
}

@keyframes float-heart-b {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(12px) rotate(8deg); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .hero-layout,
  .steps-layout,
  .slide-grid.active {
    grid-template-columns: 1fr;
  }

  .slide-grid.active {
    align-content: start;
    gap: 24px;
  }

  .hero-layout {
    min-height: unset;
    padding-top: 64px;
  }

  .phone-visual {
    height: 520px;
  }

  .cards,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .demo-frame {
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .app-shell {
    padding: 0;
  }

  .demo-header,
  .demo-body {
    padding-inline: 20px;
  }

  .demo-body {
    padding-top: 20px;
  }

  .polaroid {
    width: min(calc(100% - 32px), 360px);
    padding: 12px 12px 46px;
  }

  .polaroid::before,
  .polaroid::after {
    display: none;
  }

  .polaroid.left,
  .polaroid.right {
    transform: none;
  }

  .envelope-stage {
    min-height: 360px;
  }

  .thanks-actions {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 3.3rem;
  }

  .phone-visual {
    height: 440px;
  }

  .qr-card {
    left: 10%;
    width: 170px;
  }

  .phone-card {
    right: 12%;
    width: 185px;
  }

  .section {
    padding: 64px 0;
  }

  .demo-header {
    padding: 14px 20px 0;
  }

  .progress {
    gap: 6px;
  }

  .progress span {
    height: 5px;
  }

  .demo-top {
    margin-top: 16px;
  }

  .icon-btn {
    width: 54px;
    height: 54px;
  }

  .demo-top .brand {
    width: 32px;
    max-width: 32px;
    overflow: hidden;
    gap: 0;
    flex-shrink: 0;
    font-size: 0 !important;
    white-space: nowrap;
  }

  .demo-body {
    padding-top: 18px;
    padding-bottom: 0;
  }

  .demo-body > [data-demo-body] {
    padding-bottom: 16px;
  }

  .slide {
    padding-bottom: 8px;
  }

  .slide.center {
    align-items: flex-start;
    padding-top: min(18vh, 120px);
  }

  .slide h1,
  .slide h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
    line-height: 1.08;
  }

  .slide p {
    line-height: 1.48;
  }

  .slide-grid.active {
    gap: 18px;
  }

  .memory-slide.active,
  .final-slide.active {
    align-content: start;
  }

  .slide.center p {
    display: block;
    font-size: 14px;
  }

  .slide.center .text-link {
    display: inline-flex;
    margin-top: 8px;
  }

  .quiz-box {
    padding: 16px;
  }

  .demo-footer {
    width: 100%;
    padding: 12px 0 max(14px, env(safe-area-inset-bottom));
  }

  .demo-footer .btn {
    min-height: 54px;
  }

  .thanks-card {
    padding: 28px 20px;
  }

  .qr-download-card {
    padding: 14px;
  }

  .qr-download-card img {
    width: min(100%, 180px);
  }

  .final-photo-wrap {
    width: min(100%, 245px);
    max-width: 100%;
    gap: 10px;
  }

  .final-photo-wrap .polaroid {
    width: min(100%, 245px);
    padding: 8px 8px 28px;
  }

  .memory-slide .polaroid {
    width: min(100%, 300px);
    padding: 10px 10px 34px;
  }

  .photo-frame {
    aspect-ratio: 1.04;
  }

  .final-slide .photo-frame {
    aspect-ratio: 1.12;
  }

  .polaroid p {
    margin-top: 10px;
    font-size: 14px;
  }

  .final-counter {
    width: min(100%, 300px);
    padding: 10px 12px;
  }

  .final-counter-inline {
    margin-top: 14px;
  }

  .final-counter strong {
    font-size: 18px;
  }

  .envelope-stage {
    min-height: 310px;
    padding: 14px;
    border-radius: 22px;
  }

  .env-back,
  .env-front,
  .env-cover,
  .env-gradient {
    inset-inline: 22px;
  }

  .env-back,
  .env-front,
  .env-gradient {
    bottom: 30px;
    height: 120px;
  }

  .env-cover {
    bottom: 118px;
    height: 82px;
  }

  .open-envelope {
    inset-inline: 30px;
    bottom: 54px;
  }

  .letter-paper {
    padding: 18px;
  }

  .letter-paper p {
    font-size: 16px;
  }
}
