.loyalty-product {
  --ulp-ink: #202331;
  --ulp-muted: #514d61;
  --ulp-accent: #493a81;
  --ulp-accent-hover: #382c68;
  --ulp-cream: #fffdf6;
  --ulp-paper: #f6f4f9;
  --ulp-rule: #dfdaea;
  --ulp-night: #232334;
  --ulp-on-night: #fffaff;
  --ulp-night-muted: #ded9ec;
  --ulp-soft: #eee9f7;
  --ulp-inset: clamp(18px, 4.4vw, 62px);
  --ulp-bloc: clamp(48px, 8vw, 118px);
  --ulp-serif: Georgia, "Times New Roman", serif;
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 1440px;
  margin: clamp(12px, 2vw, 26px) auto clamp(32px, 6vw, 80px);
  color: var(--ulp-ink);
  font: 400 1rem/1.6 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.loyalty-product *, .loyalty-product *::before, .loyalty-product *::after { box-sizing: inherit }
.loyalty-product :where(h1, h2, h3, p, dl, dd, figure, ul, ol) { margin: 0 }
.loyalty-product :where(h1, h2, h3) { color: inherit }
.loyalty-product :where(h1, h2) { text-wrap: balance }
.loyalty-product [hidden] { display: none !important }
.loyalty-product :where(a, summary, input, button, select):focus-visible { outline: 3px solid currentColor; outline-offset: 4px }
.loyalty-product [id] { scroll-margin-block-start: 8rem }

.ulp-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(36px, 6vw, 90px) var(--ulp-inset);
  border-radius: 4px 4px 0 0;
  background: var(--ulp-night);
  background-image: radial-gradient(ellipse at 90% 0, #3c3456 0, transparent 65%);
  color: var(--ulp-on-night);
}

.ulp-hero__copy { display: grid; gap: clamp(16px, 2vw, 26px); justify-items: start }
.loyalty-product .ulp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ulp-night-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ulp-kicker span { flex: 0 0 8px; block-size: 8px; border: 1px solid #cbbaf4; transform: rotate(45deg) }
.loyalty-product .ulp-hero :is(h1, h2) {
  margin: 0;
  font-family: var(--ulp-serif);
  font-size: clamp(2.6rem, 5.1vw, 5.6rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.053em;
  color: inherit;
}
.loyalty-product .ulp-hero__lead { max-inline-size: 40ch; color: var(--ulp-night-muted); font-size: clamp(1rem, 1.35vw, 1.14rem) }
.ulp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px }
.loyalty-product .ulp-button, .loyalty-product .ulp-text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  color: inherit;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
.loyalty-product .ulp-button { padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; min-block-size: 48px }
.loyalty-product .ulp-button--light { background: #e5dcf8; color: #29213f }
.loyalty-product .ulp-button--light:hover { background: #f8f1ff }
.loyalty-product .ulp-hero .ulp-button--light:focus-visible { outline-color: var(--ulp-on-night) }
.loyalty-product .ulp-text-link { text-decoration: underline; text-underline-offset: .28em }
.loyalty-product .ulp-text-link:hover { text-decoration-thickness: 2px }
.loyalty-product .ulp-button--berry { background: var(--ulp-accent); color: #fff }
.loyalty-product .ulp-button--berry:hover { background: var(--ulp-accent-hover) }
.loyalty-product .ulp-button--berry:focus-visible { outline-color: var(--ulp-accent) }
.loyalty-product .ulp-button--outline { border-color: #9b8fba; color: var(--ulp-accent) }
.loyalty-product .ulp-button--outline:hover { background: var(--ulp-soft) }

.loyalty-product .ulp-preview {
  margin: 0;
  background: #fbf8ff;
  color: var(--ulp-ink);
  border: 1px solid #8a7bad;
  border-radius: 10px;
  box-shadow: 0 22px 42px #1211255c;
}
.ulp-preview__caption, .ulp-editor__title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-block-end: 1px solid var(--ulp-rule);
  color: var(--ulp-muted);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.ulp-preview__dot { flex: 0 0 8px; block-size: 8px; border-radius: 50%; background: var(--ulp-accent) }
.ulp-preview__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  padding: clamp(10px, 1.65vw, 22px);
}
.ulp-wheel__panel {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: clamp(12px, 1.55vw, 22px) 10px 10px;
  border-radius: 7px;
  text-align: center;
  background: #ece5f7;
}
.ulp-wheel__title { line-height: 1.32 }
.ulp-wheel__edition { color: #4a387e; font-size: .73rem; font-weight: 700 }
.ulp-wheel {
  position: relative;
  z-index: 0;
  --ulp-wheel-size: clamp(108px, 13.7vw, 200px);
  inline-size: var(--ulp-wheel-size);
  aspect-ratio: 1;
  margin-block: 10px 8px;
}
.ulp-wheel__pointer {
  position: absolute;
  z-index: 1;
  inset-block-start: -5px;
  inset-inline-start: calc(50% - 7px);
  inline-size: 14px;
  block-size: 16px;
  border-radius: 2px;
  background: #33265a;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
}
.ulp-wheel__dial {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 1;
  border: 4px solid #fff7eb;
  border-radius: 50%;
  background: conic-gradient(from -30deg, #c8b9ed 0 60deg, #e5d7f0 60deg 120deg, #bfa7e4 120deg 180deg, #e9def3 180deg 240deg, #dbcaf2 240deg 300deg, #e0d4ef 300deg);
  box-shadow: 0 0 0 1px #8a74b8, inset 0 0 0 1px #7960a6, 0 8px 18px #5b46993b;
  color: #302457;
}
.ulp-wheel__value {
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  inline-size: 2em;
  block-size: 2em;
  margin: -1em 0 0 -1em;
  transform: rotate(var(--ulp-wheel-angle)) translateY(calc(-.32 * var(--ulp-wheel-size))) rotate(calc(-1 * var(--ulp-wheel-angle)));
  font-size: clamp(.68rem, 1.2vw, .87rem);
  font-weight: 700;
}
.ulp-wheel__dial[data-spun] .ulp-wheel__value:first-child { border-radius: 50%; background: #fbf8ff; outline: 1px solid #564386 }
.ulp-wheel__hub {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  inline-size: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid #fff1e5;
  border-radius: 50%;
  background: #564386;
  color: #fff1eb;
  font-size: clamp(1rem, 2vw, 1.35rem);
}
.loyalty-product .ulp-wheel__control {
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 5px 12px;
  border: 1px solid #5a468c;
  border-radius: 4px;
  background: #5a468c;
  color: #fff;
  font: 700 .8125rem/1.24 system-ui, sans-serif;
  white-space: normal;
  cursor: pointer;
}
.loyalty-product .ulp-wheel__control:hover { background: var(--ulp-accent-hover) }
.loyalty-product .ulp-wheel__control:focus-visible { outline-color: var(--ulp-accent) }
.ulp-wheel__control[aria-disabled="true"] { cursor: progress }
.loyalty-product .ulp-wheel__status { min-block-size: 1.4em; color: #453467; font-size: .72rem; line-height: 1.35 }
.ulp-ledger {
  align-self: stretch;
  padding: clamp(12px, 1.4vw, 20px);
  border: 1px solid var(--ulp-rule);
  border-radius: 7px;
  background: #fffdf9;
}
.loyalty-product .ulp-ledger__label { color: var(--ulp-muted); font-size: .74rem; font-weight: 700 }
.loyalty-product .ulp-ledger__balance { margin-block: 6px 22px; color: #514176; font-size: .78rem; line-height: 1.06 }
.ulp-ledger__balance strong { display: block; inline-size: fit-content; margin-block-end: 3px; color: var(--ulp-ink); font: 500 clamp(2.3rem,4vw,3.9rem)/1 var(--ulp-serif); font-variant-numeric: tabular-nums; transform-origin: 0 70% }
.loyalty-product .ulp-ledger__history { padding-block-end: 5px; color: var(--ulp-ink); font-size: .77rem; font-weight: 700 }
.loyalty-product .ulp-ledger dl { display: grid; gap: 0; margin: 0; font-size: .73rem }
.ulp-ledger dl div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-block-start: 1px solid var(--ulp-rule) }
.loyalty-product .ulp-ledger dd { color: #4a387e; font-weight: 700; white-space: nowrap }

.ulp-section { padding: var(--ulp-bloc) var(--ulp-inset) }
.ulp-section__intro { display: grid; justify-items: start; gap: 11px; margin-block-end: clamp(24px, 4vw, 54px) }
.loyalty-product .ulp-section__intro h2 { font: 500 clamp(2.05rem, 4.1vw, 4rem)/1.06 var(--ulp-serif); letter-spacing: -.04em }
.loyalty-product .ulp-section__intro p { max-inline-size: 58ch; color: var(--ulp-muted); font-size: 1.02rem }
.ulp-workflow { background: var(--ulp-paper) }
.loyalty-product .ulp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.loyalty-product .ulp-steps li { margin: 0; padding-block-start: 20px; border-block-start: 1px solid #b6acd0 }
.ulp-points-tag { display: inline-block; margin-block-end: 18px; padding: 4px 10px; border: 1px solid #d7c8ee; border-radius: 4px; color: var(--ulp-accent); background: #ece5f8; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums }
.loyalty-product .ulp-steps h3, .loyalty-product .ulp-builder__features h3, .loyalty-product .ulp-checkout h3 { margin-block-end: 7px; font: 700 1.05rem/1.35 system-ui, sans-serif; letter-spacing: -.015em }
.loyalty-product .ulp-steps p, .loyalty-product .ulp-builder__features p, .loyalty-product .ulp-checkout p { max-inline-size: 55ch; color: var(--ulp-muted); font-size: .9375rem }

.ulp-builder { background: #fffdf9 }
.ulp-builder__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 58px); align-items: center }
.loyalty-product .ulp-editor {
  margin: 0;
  border: 1px solid #cdc2e0;
  border-radius: 7px;
  background: #f7f3fb;
  box-shadow: 0 12px 28px #2d1c4f0f;
}
.ulp-editor__title { color: #483361; background: #ebe5f6; border-radius: 6px 6px 0 0 }
.ulp-editor__title span { font-size: 1rem }
.ulp-editor__workbench { display: grid; grid-template-columns: minmax(100px, .73fr) minmax(0, 1.75fr) }
.ulp-editor__sidebar { padding: 14px 10px; border-inline-end: 1px solid var(--ulp-rule); background: #fffdf9 }
.loyalty-product .ulp-editor__label { margin: 0 0 8px; color: var(--ulp-muted); font-size: .74rem; font-weight: 700 }
.loyalty-product .ulp-editor__sections { display: grid; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none }
.loyalty-product .ulp-editor__sections li { display: flex; align-items: center; gap: 4px; margin: 0; padding: 6px; border: 1px solid var(--ulp-rule); border-radius: 4px; color: var(--ulp-ink); font-size: .72rem; line-height: 1.32 }
.ulp-editor__sections span { color: #67577e }
.loyalty-product .ulp-editor__layouts { display: flex; flex-wrap: wrap; gap: 5px; min-inline-size: 0; margin: 0; padding: 0; border: 0 }
.ulp-editor__layouts label { position: relative; display: block; cursor: pointer }
.ulp-editor__layouts label span { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 1px solid #c4b6da; border-radius: 4px; background: #fff9f3; color: #48366d; font-size: 1.1rem }
.loyalty-product .ulp-editor__layouts input {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.ulp-editor__layouts label:hover span { background: #f0e5f8 }
.ulp-editor__layouts input:checked + span { border-color: #5b448e; background: #5b448e; color: #fff }
.ulp-editor__layouts input:focus-visible + span { outline: 2px solid #5b448e; outline-offset: 2px }
.ulp-editor__screen { padding: clamp(12px, 2vw, 22px) }
.ulp-editor__layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.ulp-editor__layout[data-ulp-layout="1"] { grid-template-columns: minmax(0, 1fr) }
.ulp-editor__layout > div { padding: 10px; border: 1px solid #ded2ed; border-radius: 5px; background: #fffdfa; font-size: .75rem; transform-origin: top left }
.ulp-editor__layout strong { color: #4e377f; font-size: 1.1rem; line-height: 1.1 }
.ulp-editor__layout .ulp-editor__balance { grid-column: 1 / -1; background: #eee6f8 }
.ulp-editor__balance strong { font: 500 2.1rem/1 var(--ulp-serif) }
.ulp-editor__layout progress { display: block; inline-size: 100%; min-block-size: 12px; margin-block: 5px 2px; accent-color: var(--ulp-accent) }
.ulp-editor__layout small { display: block; color: var(--ulp-muted); font-size: .69rem; line-height: 1.25 }
.ulp-builder__features { display: grid; gap: clamp(14px, 2vw, 20px) }
.ulp-builder__features > div { padding-block-start: 16px; border-block-start: 1px solid var(--ulp-rule) }

.ulp-editions { background: #eeeaf5 }
.ulp-editions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.ulp-edition {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(17px, 3.2vw, 36px);
  border: 1px solid #d4c9e6;
  border-radius: 6px;
  background: #fffaf7;
}
.ulp-edition--pro { border-color: #8d74b2; box-shadow: inset 0 4px #8d74b2 }
.ulp-edition__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; inline-size: 100%; margin-block-end: 8px }
.loyalty-product .ulp-edition h3 { font: 500 clamp(2rem, 3vw, 2.8rem)/1 var(--ulp-serif); letter-spacing: -.03em }
.ulp-edition__tag { padding: 3px 8px; border-radius: 3px; background: #ede3f6; color: #50387e; font-size: .8125rem; font-weight: 700 }
.loyalty-product .ulp-edition > p { color: var(--ulp-muted); font-size: .92rem }
.loyalty-product .ulp-edition ul { display: grid; gap: 9px; margin: 0 0 22px; padding: 16px 0 0; list-style: none }
.loyalty-product .ulp-edition li { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: .94rem }
.ulp-edition li::before { content: "✓"; color: var(--ulp-accent); font-weight: 700 }
.ulp-edition .ulp-button { margin-block-start: auto }
.ulp-checkout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-block-start: 15px; padding: clamp(18px, 2.6vw, 32px); border: 1px solid #d4c9e6; border-radius: 6px; background: #f8f4fb }
.loyalty-product .ulp-checkout .ulp-text-link { color: var(--ulp-accent) }
.loyalty-product .ulp-payment-methods { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none }
.loyalty-product .ulp-payment-methods li { margin: 0; padding: 3px 8px; border: 1px solid #c9b9df; border-radius: 3px; color: #523d74; font-size: .8rem; font-weight: 700 }

.ulp-faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(16px, 5vw, 64px); background: var(--ulp-paper); border-radius: 0 0 4px 4px }
.ulp-faq .ulp-section__intro { align-content: start; margin-block-end: 0 }
.ulp-faq__list details { border-block-start: 1px solid #d7cde7 }
.ulp-faq__list details:last-child { border-block-end: 1px solid #d7cde7 }
.ulp-faq__list details[data-ulp-moving] { overflow: clip }
.loyalty-product .ulp-faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-block-size: 48px; padding: 10px 0; list-style: none; color: var(--ulp-ink); font-size: 1rem; font-weight: 700; cursor: pointer }
.ulp-faq__list summary::-webkit-details-marker { display: none }
.ulp-faq__icon { display: grid; place-items: center; flex: 0 0 1rem; block-size: 1rem; color: var(--ulp-accent) }
.ulp-faq__icon::before, .ulp-faq__icon::after { content: ''; grid-area: 1 / 1; inline-size: 12px; block-size: 2px; background: currentColor; border-radius: 1px }
.ulp-faq__icon::after { transform: rotate(90deg) }
.ulp-faq__list details[open]:not([data-ulp-closing]) .ulp-faq__icon::after { transform: rotate(0); opacity: 0 }
.loyalty-product .ulp-faq__list details p { padding-block-end: 16px; color: var(--ulp-muted); font-size: .94rem }

@media (max-width: 1000px) {
  .ulp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) }
  .ulp-builder__grid { grid-template-columns: minmax(0, 1fr) }
  .ulp-builder__features { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}

@media (max-width: 760px) {
  .ulp-hero { grid-template-columns: minmax(0, 1fr) }
  .ulp-hero__copy { max-inline-size: 34rem }
  .ulp-wheel { --ulp-wheel-size: clamp(136px, 31vw, 192px) }
  .ulp-faq { grid-template-columns: minmax(0, 1fr) }
  .ulp-editions__grid, .ulp-checkout { gap: 10px }
}

@media (max-width: 520px) {
  .ulp-hero { padding-block: 26px 18px }
  .loyalty-product .ulp-hero :is(h1, h2) { font-size: clamp(2.1rem, 9vw, 2.9rem) }
  .ulp-preview__body { grid-template-columns: minmax(0, 1fr) }
  .ulp-wheel__panel { padding-block-start: 14px }
  .loyalty-product .ulp-ledger__balance { margin-block-end: 12px }
  .ulp-ledger__balance strong { display: inline-block; margin-inline-end: 3px }
  .loyalty-product .ulp-steps, .ulp-builder__features, .ulp-editions__grid, .ulp-checkout { grid-template-columns: minmax(0, 1fr) }
  .loyalty-product .ulp-steps li { padding-block-start: 13px }
  .ulp-points-tag { margin-block-end: 8px }
  .ulp-editor__workbench { grid-template-columns: minmax(0, 1fr) }
  .ulp-editor__sidebar { border-inline-end: 0; border-block-end: 1px solid var(--ulp-rule) }
  .loyalty-product .ulp-editor__sections { display: flex; flex-wrap: wrap; gap: 4px }
}

@media (prefers-reduced-motion: no-preference) {
  .loyalty-product {
    --ulp-press: cubic-bezier(.2,.7,.3,1);
    --ulp-release: cubic-bezier(.22,1.42,.40,1);
  }

  .ulp-hero__copy { animation: ulp-copy-in 460ms cubic-bezier(.22,1,.36,1) }
  .loyalty-product .ulp-preview { animation: ulp-preview-in 650ms cubic-bezier(.22,1,.36,1) }

  .loyalty-product :is(.ulp-button, .ulp-wheel__control, .ulp-editor__layouts label span) {
    transition: transform 270ms var(--ulp-release), background-color 160ms ease-out, color 160ms ease-out;
  }
  .loyalty-product :is(.ulp-button, .ulp-wheel__control):active:not([aria-disabled="true"]),
  .ulp-editor__layouts label:active span {
    transform: scale(.955);
    transition: transform 115ms var(--ulp-press);
  }
  .ulp-actions a span, .ulp-edition a span { transition: transform 260ms var(--ulp-release) }
  .ulp-faq__icon::after { transition: transform 280ms var(--ulp-release), opacity 200ms ease-out }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .loyalty-product :is(.ulp-button, .ulp-wheel__control):hover:not(:active, [aria-disabled="true"]) { transform: translateY(-2px) }
  .ulp-actions a:hover span, .ulp-edition a:hover span { transform: translate(2px, -1px) }
}

@media (forced-colors: active) {
  .ulp-editor__layouts input:checked + span { outline: 2px solid Highlight; outline-offset: -2px }
  .ulp-wheel__dial { border: 2px solid CanvasText }
  .ulp-faq__icon { forced-color-adjust: none; color: CanvasText }
}

@keyframes ulp-copy-in {
  from { opacity: .68; transform: translateY(15px) }
  82% { opacity: 1; transform: translateY(-2px) }
  to { opacity: 1; transform: none }
}

@keyframes ulp-preview-in {
  from { opacity: .7; transform: translateY(22px) scale(.966) }
  76% { opacity: 1; transform: translateY(-3px) scale(1.008) }
  to { opacity: 1; transform: none }
}
