@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Lexend:wght@400;500;600&family=Open+Sans:wght@400;600&display=swap");

:root {
  --purple: #1A0818;
  --deep: #0D0520;
  --cream: #FDF8F0;
  --soft: #F5ECDD;
  --gold: #C59F46;
  --gold-h: #A8893A;
  --gold-m: #F0E6D2;
  --gray: #3D3D56;
  --border: #E8E0D5;
  --muted-d: #C9BCC6;
  --err: #9B2C2C;
  --serif: "Lora", Georgia, serif;
  --ui: "Lexend", sans-serif;
  --body: "Open Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); }
body {
  color: var(--purple);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--serif); line-height: 1.12; text-wrap: balance; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrap {
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: grid;
  align-content: start;
  gap: 22px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 2%, rgba(116, 75, 111, .3), transparent 54%),
    var(--purple);
  color: var(--cream);
  border-radius: 24px;
  padding: 22px 20px 26px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 18px 44px rgba(26, 8, 24, .22);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(197,159,70,.18);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.logo { width: 112px; height: auto; object-fit: contain; }
.photo {
  width: min(190px, 50vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #E6C877, var(--gold-h));
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.photo:hover { transform: scale(1.025); }
.photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  border: 4px solid var(--purple);
}
.hero h1 { max-width: 19ch; font-size: clamp(30px, 7.4vw, 40px); font-weight: 600; color: var(--cream); }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { max-width: 30ch; color: var(--muted-d); font-size: 16.5px; }
.insight { display: grid; gap: 4px; padding-inline: 6px; text-align: center; animation: rise-in .45s ease both; }
.insight p { font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.insight b { color: var(--gold-h); font-family: var(--serif); font-weight: 700; }
.prog { display: grid; gap: 8px; }
.count { display: flex; justify-content: space-between; gap: 12px; color: var(--gray); font: 13px var(--ui); }
.bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--gold-m); }
.bar i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-h), var(--gold));
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}
.step, .thanks {
  display: none;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 24px 20px;
}
.step.on {
  display: grid;
  animation: step-arrive .34s cubic-bezier(.2,.75,.25,1) both;
}
.step h2 { font-size: clamp(24px, 6vw, 30px); }
.step h2:focus { outline: none; }
.hint { margin-top: -8px; color: var(--gray); font-size: 15px; }
label, .lab { display: grid; gap: 6px; color: var(--purple); font: 500 15px var(--ui); }
input, textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  color: var(--purple);
  font: 16px/1.5 var(--body);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 148px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
[aria-invalid="true"] { border-color: var(--err); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { color: var(--gold-h); }
.msg { min-height: 0; color: var(--err); font-size: 14px; }
.msg:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  color: var(--purple);
  cursor: pointer;
  font: 15px var(--ui);
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.chips button:hover { transform: translateY(-1px); border-color: var(--gold); }
.chips button[aria-checked="true"] { border-color: var(--purple); background: var(--purple); color: var(--cream); }
.chips button[aria-checked="true"]::before { color: var(--gold); content: "✓ "; }
.nav { display: flex; align-items: center; gap: 10px; }
.back {
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--gray);
  cursor: pointer;
  font: 15px var(--ui);
}
.back:hover { color: var(--purple); }
.cta {
  width: 100%;
  min-height: 54px;
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #D6B35E, var(--gold));
  box-shadow: 0 6px 18px rgba(197,159,70,.28);
  padding: 14px 22px;
  color: var(--purple);
  cursor: pointer;
  font: 600 17px var(--ui);
  letter-spacing: .01em;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.cta:hover:not([aria-disabled="true"]):not(:disabled) { transform: translateY(-2px); background: #D0AC53; box-shadow: 0 9px 22px rgba(197,159,70,.34); }
.cta[aria-disabled="true"] { background: var(--gold-m); box-shadow: none; color: #8A7F76; cursor: not-allowed; }
.cta:disabled { opacity: .7; cursor: wait; transform: none; }
.cta:focus-visible, .chips button:focus-visible, .back:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.fine { color: var(--gray); font-size: 13.5px; text-align: center; }
.gifts {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(197,159,70,.35);
  border-radius: 18px;
  background: var(--purple);
  padding: 20px 18px;
  color: var(--cream);
}
.gifts .top { display: flex; align-items: center; gap: 10px; font: 20px/1.25 var(--serif); }
.gifts .top em { color: var(--gold); font-style: italic; }
.env { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 10px; background: rgba(197,159,70,.14); }
.gift { display: grid; grid-template-columns: 30px 1fr; gap: 10px; border-top: 1px solid rgba(197,159,70,.22); padding-top: 12px; }
.gift i { color: var(--gold); font: 700 22px/1.1 var(--serif); }
.gift span { color: var(--gold); font: 600 11.5px var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.gift b { display: block; color: var(--cream); font: 600 17.5px/1.3 var(--serif); }
.seal-line { color: var(--gold); font: 12.5px var(--ui); letter-spacing: .04em; text-align: center; }
.thanks.on { display: grid; border: 1.5px solid var(--gold); padding: 28px 20px; text-align: center; animation: step-arrive .38s ease both; }
.thanks h2 { font-size: 30px; }
.thanks p { color: var(--gray); }
.kick { color: var(--gold-h); font: 500 12px var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.foot { color: var(--gray); font-size: 12.5px; text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}
@keyframes step-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .wrap { gap: 18px; padding-top: 16px; }
  .two { grid-template-columns: 1fr; }
  .step { padding: 22px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}