/* Registry page */

.hero__art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(transparent, var(--cream));
}

/* ── How it works ─────────────────────────────────────────────────────────── */

.steps {
  position: relative;
  z-index: 2;
  margin-top: -6px;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__list li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.steps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--butter);
  font: 700 26px/1 var(--font-hand);
}

.steps__list li:nth-child(2) .steps__num {
  background: var(--rose);
}

.steps__list li:nth-child(3) .steps__num {
  background: var(--sage);
}

.steps__list strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.steps__list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (max-width: 860px) {
  .steps__list {
    grid-template-columns: 1fr;
  }
}

/* ── Address + guide ──────────────────────────────────────────────────────── */

.before-you-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: start;
  margin-top: 26px;
}

@media (max-width: 920px) {
  .before-you-buy {
    grid-template-columns: 1fr;
  }
}

.address-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--butter) 55%, transparent), transparent 60%),
    var(--paper);
}

.address-card__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--butter);
  color: var(--ink);
}

.address-card__badge svg {
  width: 24px;
  height: 24px;
}

.address-card h2,
.guide__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.pass-form {
  display: flex;
  gap: 8px;
}

.pass-form input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 400px) {
  .pass-form {
    flex-direction: column;
  }
}

.address-box {
  margin-top: 14px;
}

.address-box .hint {
  margin-bottom: 8px;
}

.address-lines {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden;
}

.address-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: none;
  color: var(--ink);
  font: 700 17px/1.3 var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.address-lines li:last-child .address-line {
  border-bottom: 0;
}

.address-line:hover {
  background: var(--cream);
}

.address-line svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.45;
}

.address-line.is-copied svg {
  opacity: 1;
  color: var(--sage-deep);
}

.guide {
  padding: 0;
}

.guide summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(20px, 3vw, 28px);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--sky);
}

.guide__icon svg {
  width: 28px;
  height: auto;
  border-radius: 3px;
}

.guide__heading {
  display: grid;
  flex: 1;
}

.guide__sub {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.guide__chev {
  flex: none;
  width: 14px;
  height: 14px;
  border-right: 3px solid var(--ink-soft);
  border-bottom: 3px solid var(--ink-soft);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s;
}

.guide[open] .guide__chev {
  transform: rotate(-135deg);
}

.guide__steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 clamp(20px, 3vw, 28px);
  list-style: none;
  counter-reset: step;
}

.guide__steps li {
  position: relative;
  padding-left: 50px;
  font-size: 16px;
}

.guide__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sky);
  font: 700 23px/1 var(--font-hand);
}

.guide__steps li:nth-child(3n + 2)::before {
  background: var(--rose);
}

.guide__steps li:nth-child(3n)::before {
  background: var(--sage);
}

.guide__steps strong {
  display: block;
}

.sv {
  padding: 0 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--butter) 80%, transparent);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.glossary__title {
  margin: 26px clamp(20px, 3vw, 28px) 10px;
  font-size: 20px;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 18px;
  margin: 0;
  padding: 0 clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

.glossary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.glossary dt {
  font-weight: 800;
}

.glossary dd {
  margin: 0;
  color: var(--ink-soft);
  text-align: right;
}

/* ── Filters ──────────────────────────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-weight: 800;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 46px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}

.switch__track {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background-color 0.2s;
}

.switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.switch input:checked + .switch__track {
  background: var(--sage-deep);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch__track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.gifts__status {
  min-height: 1.5em;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ── Gift cards ───────────────────────────────────────────────────────────── */

.gifts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 20px;
}

.gift {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gift:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgb(59 52 66 / 0.05), 0 18px 40px rgb(59 52 66 / 0.14);
}

.gift__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--sky) 30%, #fff) 100%);
  overflow: hidden;
}

.gift__media img {
  width: 100%;
  height: 100%;
  padding: 16px 16px 40px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gift__store {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.94);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 800;
}

.gift__store svg {
  width: 16px;
  height: 16px;
  color: var(--sky-deep);
}

.gift__example {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--butter);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gift__ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  padding: 6px 46px;
  background: var(--sage-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transform: rotate(35deg);
  box-shadow: var(--shadow-sm);
}

.gift__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.gift__category {
  margin: 0 0 2px;
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gift__name {
  margin: 0 0 6px;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.gift__note {
  color: var(--ink-soft);
  font-size: 15px;
}

.gift__price {
  margin: auto 0 10px;
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.gift__price strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
}

.gift__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.gift__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-deep), color-mix(in srgb, var(--sage-deep) 60%, #fff));
  transition: width 0.6s ease;
}

.gift__count {
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 700;
}

.gift__actions {
  display: grid;
  gap: 8px;
}

.gift__actions .btn {
  width: 100%;
}

.gift__done-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sage) 55%, transparent);
  font-weight: 700;
  text-align: center;
}

.gift__mine {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--butter) 60%, transparent);
  font-size: 14px;
  font-weight: 600;
}

.gift--done .gift__media img {
  filter: grayscale(0.4);
  opacity: 0.6;
}

.gift.is-highlight {
  animation: gift-glow 1.6s ease;
}

@keyframes gift-glow {
  30% {
    box-shadow: 0 0 0 4px var(--sage), var(--shadow);
  }
}

/* ── Claim dialog ─────────────────────────────────────────────────────────── */

.claim__kicker {
  margin: 0;
  color: var(--rose-deep);
  font-size: 26px;
}

#claim-title {
  padding-right: 40px;
  font-size: clamp(24px, 4vw, 30px);
}

/* Little hearts that float up after "I bought this" */
.heart-burst {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  font-size: 22px;
  animation: heart-up 1.3s ease-out forwards;
}

@keyframes heart-up {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), -140px) scale(1.2) rotate(var(--rot));
  }
}
