:root {
  --wine: #7f1237;
  --wine-deep: #4b071f;
  --wine-soft: #a83b60;
  --cream: #fff9f1;
  --cream-deep: #f5e8da;
  --gold: #d9ac72;
  --ink: #25161c;
  --muted: #796a70;
  --line: rgba(127, 18, 55, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(75, 7, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 172, 114, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(168, 59, 96, 0.13), transparent 28rem),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pointer-glow {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 172, 114, 0.17), rgba(168, 59, 96, 0.05) 45%, transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  will-change: transform;
}

.wish-progress {
  position: fixed;
  z-index: 40;
  top: 50%;
  left: 18px;
  width: 2px;
  height: min(46vh, 360px);
  border-radius: 999px;
  background: rgba(127, 18, 55, 0.1);
  transform: translateY(-50%);
  pointer-events: none;
}

.wish-progress::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(var(--gold), var(--wine));
  clip-path: inset(0 0 calc(100% - (var(--page-progress, 0) * 100%)) 0 round 999px);
  content: "";
}

.wish-progress span {
  position: absolute;
  top: calc(var(--page-progress, 0) * 100%);
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 5px rgba(127, 18, 55, 0.09);
  transform: translate(-50%, -50%);
}

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

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine-deep);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--wine);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 60px;
  min-height: 690px;
  padding: 64px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--wine);
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(75, 7, 31, 0.06);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 172, 114, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--wine-deep);
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.25px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  overflow: visible;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-weight: 750;
  text-decoration: none;
  isolation: isolate;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.015);
}

.button:active {
  transform: translateY(0) scale(0.97);
}

.button:focus-visible {
  outline: 3px solid rgba(217, 172, 114, 0.55);
  outline-offset: 4px;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.35) 45%, transparent 66%);
  background-size: 250% 100%;
  background-position: 150% 0;
  content: "";
  pointer-events: none;
  transition: background-position 550ms ease;
}

.button:hover::before {
  background-position: -70% 0;
}

.button.primary {
  background: linear-gradient(135deg, var(--wine), var(--wine-soft));
  color: white;
  box-shadow: 0 15px 34px rgba(127, 18, 55, 0.24);
}

.button.primary:hover {
  box-shadow: 0 20px 42px rgba(127, 18, 55, 0.3);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--wine);
}

.button.secondary:hover {
  border-color: rgba(127, 18, 55, 0.26);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(75, 7, 31, 0.1);
}

.button-spark {
  --spark-x: 0px;
  --spark-y: 0px;
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(217, 172, 114, 0.65);
  opacity: 0;
  pointer-events: none;
  animation: button-sparkle 620ms cubic-bezier(0.17, 0.67, 0.3, 1) forwards;
}

.button-spark:nth-last-child(even) {
  width: 5px;
  height: 5px;
  background: var(--wine-soft);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  isolation: isolate;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
}

.hero-art::before {
  width: min(450px, 92vw);
  height: min(450px, 92vw);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 232, 218, 0.7));
  box-shadow: var(--shadow);
}

.hero-art::after {
  width: 350px;
  height: 350px;
  border: 1px solid rgba(127, 18, 55, 0.1);
  animation: breathe 5s ease-in-out infinite;
}

.hero-logo {
  width: min(390px, 82vw);
  filter: drop-shadow(0 22px 22px rgba(75, 7, 31, 0.12));
  animation: float 5s ease-in-out infinite;
}

.floating-wish {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(127, 18, 55, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wine-deep);
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 15px 35px rgba(75, 7, 31, 0.12);
  backdrop-filter: blur(14px);
  animation: wish-drift 6s ease-in-out infinite;
}

.floating-wish span {
  color: var(--wine);
  font-size: 16px;
}

.floating-wish-one {
  top: 16%;
  left: -3%;
  transform: rotate(-4deg);
}

.floating-wish-two {
  right: -5%;
  bottom: 18%;
  animation-delay: -2s;
  transform: rotate(3deg);
}

.floating-wish-three {
  bottom: 5%;
  left: 13%;
  animation-delay: -4s;
  transform: rotate(-2deg);
}

.spark {
  position: absolute;
  color: var(--gold);
  font-size: 24px;
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark.one {
  top: 18%;
  right: 13%;
}

.spark.two {
  bottom: 20%;
  left: 10%;
  animation-delay: 900ms;
}

.section {
  padding: 90px 0;
}

.wish-lab {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.wish-lab::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -16%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(127, 18, 55, 0.08);
  border-radius: 50%;
  content: "";
}

.wish-lab-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.lab-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.wish-lab-intro h2 {
  max-width: 500px;
  margin-bottom: 16px;
  color: var(--wine-deep);
  font-size: clamp(38px, 5vw, 59px);
  line-height: 1.01;
  letter-spacing: -2.5px;
  text-wrap: balance;
}

.wish-lab-intro p {
  max-width: 470px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.wish-machine {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(127, 18, 55, 0.16);
  border-radius: 36px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 90% 0%, rgba(217, 172, 114, 0.35), transparent 35%);
  box-shadow: 0 32px 85px rgba(75, 7, 31, 0.13);
  backdrop-filter: blur(18px);
}

.wish-machine::after {
  position: absolute;
  top: -70px;
  right: -80px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(127, 18, 55, 0.1);
  border-radius: 50%;
  content: "";
}

.machine-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  color: var(--wine-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.machine-status {
  color: var(--muted);
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.wish-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wish-form input {
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(127, 18, 55, 0.16);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.8);
  color: var(--wine-deep);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wish-form input:focus {
  border-color: rgba(127, 18, 55, 0.42);
  box-shadow: 0 0 0 4px rgba(127, 18, 55, 0.08);
}

.wish-make-button {
  min-height: 56px;
  white-space: nowrap;
}

.generated-wish {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  margin-top: 16px;
  padding: 25px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--wine-deep), var(--wine));
  color: white;
  box-shadow: 0 19px 40px rgba(75, 7, 31, 0.2);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.generated-wish.is-switching {
  opacity: 0.35;
  transform: translateY(4px) scale(0.985);
  filter: blur(3px);
}

.generated-wish.is-created {
  animation: wish-created 720ms cubic-bezier(0.17, 0.84, 0.36, 1.12);
}

.generated-orbit {
  position: absolute;
  right: -55px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.generated-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 35px;
}

.generated-wish > div:nth-of-type(3) {
  position: relative;
  z-index: 1;
}

.generated-wish span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.generated-wish strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.7px;
  text-wrap: balance;
}

.generated-wish p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.generated-sparkles {
  position: absolute !important;
  z-index: 3 !important;
  inset: 0;
  pointer-events: none;
}

.generated-sparkles i {
  position: absolute;
  color: var(--gold);
  font-style: normal;
  opacity: 0;
}

.generated-wish.is-created .generated-sparkles i {
  animation: generated-spark 850ms ease-out forwards;
}

.generated-sparkles i:nth-child(1) { top: 18%; left: 17%; }
.generated-sparkles i:nth-child(2) { top: 20%; right: 9%; animation-delay: 90ms !important; }
.generated-sparkles i:nth-child(3) { right: 18%; bottom: 13%; animation-delay: 160ms !important; }

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: var(--wine-deep);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: minmax(270px, auto) minmax(270px, auto);
  gap: 18px;
}

.story-card {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(75, 7, 31, 0.06);
  backdrop-filter: blur(14px);
}

.story-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(127, 18, 55, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.story-card-main {
  grid-row: 1 / 3;
  min-height: 558px;
  background:
    radial-gradient(circle at 70% 22%, rgba(217, 172, 114, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(245, 232, 218, 0.74));
}

.story-card-main::before {
  position: absolute;
  top: 20%;
  right: 12%;
  color: rgba(127, 18, 55, 0.16);
  content: "♡";
  font-family: Georgia, serif;
  font-size: 150px;
  line-height: 1;
  transform: rotate(8deg);
}

.story-card-people {
  background: linear-gradient(145deg, rgba(127, 18, 55, 0.96), rgba(75, 7, 31, 0.98));
  color: white;
}

.story-card-people::after {
  border-color: rgba(255, 255, 255, 0.15);
}

.story-card-surprise {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(252, 243, 235, 0.9));
}

.story-card-surprise .story-label {
  grid-column: 1 / -1;
  justify-self: start;
}

.surprise-mark {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  padding-bottom: 6px;
  color: var(--wine);
  font-size: 44px;
  filter: drop-shadow(0 8px 12px rgba(127, 18, 55, 0.18));
}

.story-card-surprise > div:last-child {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.story-label {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(127, 18, 55, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.story-card-people .story-label {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.story-card > div {
  position: relative;
  z-index: 1;
}

.story-kicker {
  margin-bottom: 9px;
  color: var(--wine-deep);
  font-size: 14px;
  font-weight: 750;
}

.story-card-people .story-kicker {
  color: var(--gold);
}

.story-card h3 {
  max-width: 500px;
  margin-bottom: 12px;
  color: var(--wine-deep);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.story-card-people h3 {
  color: white;
  font-size: 28px;
}

.story-card > div > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.story-card-people > div > p:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.share-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}

.share-copy h2 {
  max-width: 560px;
  margin-bottom: 18px;
  color: var(--wine-deep);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -2.2px;
  text-wrap: balance;
}

.share-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.benefit-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--wine);
  font-size: 12px;
  font-weight: 760;
}

.share-demo {
  position: relative;
  padding: clamp(24px, 5vw, 45px);
  border: 1px solid rgba(127, 18, 55, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 85% 5%, rgba(217, 172, 114, 0.26), transparent 28%),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.share-demo::before {
  position: absolute;
  top: -14px;
  right: 40px;
  color: var(--gold);
  content: "✦";
  font-size: 31px;
  filter: drop-shadow(0 7px 9px rgba(127, 18, 55, 0.16));
  animation: twinkle 3s ease-in-out infinite;
}

.message-time {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.message-bubble {
  width: fit-content;
  max-width: 84%;
  margin: 0 0 12px auto;
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(135deg, var(--wine), var(--wine-soft));
  color: white;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 12px 26px rgba(127, 18, 55, 0.17);
}

.link-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(75, 7, 31, 0.09);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.link-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(75, 7, 31, 0.13);
}

.link-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}

.link-preview-copy {
  padding: 18px 20px 20px;
}

.link-preview-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.link-preview-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--wine-deep);
  font-size: 18px;
  letter-spacing: -0.35px;
}

.link-preview-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.preview-copy-button {
  width: 100%;
  margin-top: 14px;
  border-color: rgba(127, 18, 55, 0.18);
  background: rgba(127, 18, 55, 0.07);
  color: var(--wine);
}

.preview-copy-button.is-copied {
  border-color: rgba(42, 130, 86, 0.25);
  background: rgba(42, 130, 86, 0.11);
  color: #216f49;
}

.reveal {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 650ms ease;
}

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

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 50px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--wine-deep), var(--wine));
  color: white;
  box-shadow: 0 30px 80px rgba(75, 7, 31, 0.22);
}

.callout h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.7px;
}

.callout p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.callout .button {
  background: var(--cream);
  color: var(--wine-deep);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 50px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.legal-hero {
  padding: 70px 0 48px;
}

.legal-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(44px, 7vw, 70px);
}

.legal-meta {
  color: var(--muted);
  font-size: 16px;
}

.document {
  max-width: 820px;
  padding-bottom: 100px;
}

.document section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 10px;
  color: var(--wine-deep);
  font-size: 22px;
  letter-spacing: -0.5px;
}

.document p,
.document li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.document a {
  color: var(--wine);
  font-weight: 700;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 50px;
}

.support-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.support-card h2 {
  margin-bottom: 9px;
  color: var(--wine-deep);
  font-size: 22px;
}

.support-card p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.support-card a {
  color: var(--wine);
  font-weight: 750;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.8) rotate(0deg); opacity: 0.45; }
  50% { transform: scale(1.18) rotate(12deg); opacity: 1; }
}

@keyframes wish-drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -9px; }
}

@keyframes wish-created {
  0% { transform: scale(0.96) rotate(-0.5deg); filter: brightness(0.9); }
  55% { transform: scale(1.02) rotate(0.25deg); filter: brightness(1.08); }
  100% { transform: scale(1) rotate(0); filter: brightness(1); }
}

@keyframes generated-spark {
  0% { transform: scale(0.3) rotate(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.8) rotate(30deg); opacity: 0; }
}

@keyframes button-sparkle {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(0);
    opacity: 0;
  }
}

@media (max-width: 820px) {
  .wish-progress {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: none;
  }

  .wish-progress::before {
    background: linear-gradient(90deg, var(--gold), var(--wine));
    clip-path: inset(0 calc(100% - (var(--page-progress, 0) * 100%)) 0 0 round 999px);
  }

  .wish-progress span {
    top: 50%;
    left: calc(var(--page-progress, 0) * 100%);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--wine);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    z-index: 20;
    top: 65px;
    right: 0;
    display: grid;
    width: min(270px, calc(100vw - 28px));
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 249, 241, 0.96);
    box-shadow: 0 20px 55px rgba(75, 7, 31, 0.16);
    backdrop-filter: blur(18px);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--wine-deep);
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: rgba(127, 18, 55, 0.08);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
    padding: 50px 0 70px;
    text-align: center;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .actions,
  .eyebrow {
    justify-content: center;
  }

  .hero-art {
    min-height: 440px;
  }

  .floating-wish-one {
    left: 0;
  }

  .floating-wish-two {
    right: 0;
  }

  .wish-lab {
    grid-template-columns: 1fr;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .wish-lab-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .wish-lab-intro p {
    margin-right: auto;
    margin-left: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .story-card-main {
    grid-row: auto;
    min-height: 390px;
  }

  .story-card-people,
  .story-card-surprise {
    min-height: 300px;
  }

  .story-card-surprise {
    grid-template-columns: 1fr;
  }

  .story-card-surprise > div:last-child {
    grid-column: 1;
  }

  .surprise-mark {
    display: none;
  }

  .share-section {
    grid-template-columns: 1fr;
  }

  .share-copy {
    text-align: center;
  }

  .share-copy .eyebrow,
  .benefit-row {
    justify-content: center;
  }

  .share-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .callout {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    letter-spacing: -1.2px;
  }

  .hero-art {
    min-height: 350px;
  }

  .floating-wish {
    padding: 9px 11px;
    font-size: 10px;
  }

  .floating-wish-one {
    top: 10%;
    left: -2%;
  }

  .floating-wish-two {
    right: -2%;
    bottom: 13%;
  }

  .floating-wish-three {
    display: none;
  }

  .hero-art::before {
    width: 320px;
    height: 320px;
  }

  .hero-art::after {
    width: 260px;
    height: 260px;
  }

  .button {
    width: 100%;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 300px;
    padding: 25px;
  }

  .story-card-main {
    min-height: 360px;
  }

  .story-card-main::before {
    top: 24%;
    right: 6%;
    font-size: 105px;
  }

  .wish-machine {
    padding: 20px;
    border-radius: 28px;
  }

  .machine-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .wish-form {
    grid-template-columns: 1fr;
  }

  .generated-wish {
    grid-template-columns: 1fr;
    padding: 22px;
    text-align: center;
  }

  .generated-mark {
    margin: 0 auto;
  }

  .share-demo {
    padding: 20px;
    border-radius: 28px;
  }

  .link-preview {
    border-radius: 20px;
  }

}

@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;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (pointer: coarse) {
  .pointer-glow {
    display: none;
  }
}
