@font-face {
  font-family: "WantedSansVariable";
  src: url("./program-assets/WantedSansVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.store-preview,
.store-promo {
  --sp-cream: #fffaf5;
  --sp-paper: #fffdfb;
  --sp-ink: #24242a;
  --sp-accent: #c43c30;
  --sp-muted: #746b70;
  --sp-line: #e8dcd3;
  color: var(--sp-ink);
  font-family: "WantedSansVariable", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.store-preview *,
.store-promo * { box-sizing: border-box; }

body.store-preview {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sp-cream);
  line-height: 1.65;
}

.sp-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-preview-header img { display: block; width: 150px; height: auto; }
.sp-preview-tag { color: var(--sp-accent); font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.sp-preview-main { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: clamp(56px, 10vh, 104px) 0 64px; text-align: center; }
.sp-preview-main h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); font-weight: 700; line-height: 1.2; letter-spacing: -.055em; word-break: keep-all; }
.sp-preview-main > p { max-width: 620px; margin: 24px auto 0; color: var(--sp-muted); font-size: 16px; line-height: 1.8; word-break: keep-all; }
.sp-reopen { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 30px; padding: 13px 24px; border: 1px solid var(--sp-accent); border-radius: 12px; background: var(--sp-accent); color: #fff; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.sp-reopen:hover { background: #a93027; }
.sp-preview-info { max-width: 650px; margin: 48px auto 0; padding: 24px 28px; border: 1px solid var(--sp-line); border-radius: 18px; background: #ffffff70; text-align: left; }
.sp-preview-info h2 { margin: 0 0 16px; font-size: 16px; letter-spacing: -.025em; }
.sp-preview-info > p { margin: 0 0 16px; color: var(--sp-muted); font-size: 14px; }
.sp-preview-info dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 20px; margin: 0; font-size: 14px; }
.sp-preview-info dl > div { display: contents; }
.sp-preview-info dt { color: var(--sp-muted); }
.sp-preview-info dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }

.store-promo {
  width: min(760px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid #eaded4;
  border-radius: 24px;
  background: var(--sp-cream);
  box-shadow: 0 32px 100px #20212c38;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
}

.store-promo::backdrop { background: #1d202c8c; backdrop-filter: blur(3px); }
.sp-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px 12px 30px; }
.sp-dialog-top > img { display: block; width: 150px; height: auto; }
.sp-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 0; background: transparent; color: #676268; font: inherit; cursor: pointer; }
.sp-close:hover { color: var(--sp-accent); }
.sp-close svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.sp-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 30px; color: var(--sp-accent); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; }
.sp-status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-accent); }
.sp-intro { padding: 13px 30px 24px; }
.sp-intro h2 { margin: 0; color: var(--sp-ink); font-size: clamp(30px, 4.5vw, 40px); font-weight: 700; line-height: 1.22; letter-spacing: -.055em; word-break: keep-all; text-wrap: balance; }
.sp-intro h2:focus { outline: none; }
.sp-intro p { max-width: 610px; margin: 14px 0 0; color: var(--sp-muted); font-size: 14px; line-height: 1.75; word-break: keep-all; }

.sp-products { margin: 0; padding: 0 30px; list-style: none; }
ul.sp-products,
.sp-products > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-products > ul { margin: 0; padding: 0; list-style: none; }
.sp-products li { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; }
.sp-product-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 14px; width: 100%; min-height: 180px; padding: 21px 18px; border: 1px solid var(--sp-line); border-radius: 17px; background: var(--sp-paper); color: var(--sp-ink); text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.sp-product-card:hover { transform: translateY(-2px); border-color: #dca79b; box-shadow: 0 8px 24px #6a30220c; color: var(--sp-ink); }
.sp-product-icon { display: grid; place-items: center; width: 52px; height: 56px; border: 1px solid #ead5ca; border-radius: 13px; background: #f8e9e2; color: var(--sp-accent); }
.sp-products li:nth-child(2) .sp-product-icon { border-color: #e8d9c8; background: #f6ecdf; color: #8b6242; }
.sp-products li:nth-child(3) .sp-product-icon { border-color: #e7d6cf; background: #f5e9e5; color: #9b554a; }
.sp-products li:nth-child(4) .sp-product-icon { border-color: #ead5ce; background: #fae9e2; color: #ad4e3f; }
.sp-product-icon svg { display: block; width: 29px; height: 29px; }
.sp-product-copy { min-width: 0; }
.sp-product-number { display: block; padding-right: 17px; color: var(--sp-accent); font-size: 10px; font-weight: 650; line-height: 1.6; letter-spacing: .035em; }
.sp-product-copy h3 { margin: 8px 0 0; font-size: 17px; font-weight: 650; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.sp-product-copy p { margin: 9px 0 0; color: var(--sp-muted); font-size: 12px; line-height: 1.7; letter-spacing: -.015em; word-break: keep-all; overflow-wrap: anywhere; }
.sp-product-arrow { position: absolute; top: 22px; right: 16px; width: 16px; height: 16px; color: #a48c83; }
.sp-product-card:hover .sp-product-arrow { color: var(--sp-accent); }

.sp-dialog-footer { padding: 22px 30px 20px; }
.sp-store-link { display: inline-flex; align-items: center; gap: 7px; color: var(--sp-accent); font-size: 13px; font-weight: 650; line-height: 1.6; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sp-store-link svg { width: 16px; height: 16px; }
.sp-note { margin: 9px 0 0; color: var(--sp-muted); font-size: 11px; line-height: 1.7; word-break: keep-all; }
.sp-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sp-line); background: #f6eee7; }
.sp-actions button { min-width: 0; min-height: 49px; margin: 0; padding: 13px 16px; border: 0; border-radius: 0; background: transparent; color: #686066; font: inherit; font-size: 12px; font-weight: 550; cursor: pointer; }
.sp-actions button + button { border-left: 1px solid var(--sp-line); }
.sp-actions button:hover { color: var(--sp-accent); background: #f0e3d9; }
.store-promo :is(a, button):focus-visible,
.store-preview :is(a, button):focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 4px; }
.sp-actions button:focus-visible { position: relative; z-index: 1; outline-offset: -5px; }
.sp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 620px) {
  .sp-preview-header { width: calc(100% - 36px); padding: 20px 0; gap: 14px; }
  .sp-preview-header img { width: 138px; }
  .sp-preview-tag { font-size: 10px; text-align: right; }
  .sp-preview-main { width: calc(100% - 36px); padding: 52px 0 40px; }
  .sp-preview-main > p { font-size: 14px; }
  .sp-preview-info { margin-top: 36px; padding: 20px; }
  .sp-preview-info dl { grid-template-columns: 82px minmax(0, 1fr); gap: 10px 12px; font-size: 12px; }
  .store-promo { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .sp-dialog-top { padding: 14px 14px 9px 20px; }
  .sp-dialog-top > img { width: 140px; }
  .sp-eyebrow { margin: 0 20px; font-size: 10px; }
  .sp-intro { padding: 12px 20px 20px; }
  .sp-intro h2 { font-size: clamp(28px, 7.5vw, 34px); }
  .sp-intro p { margin-top: 12px; font-size: 13px; }
  .sp-products { padding: 0 20px; }
  ul.sp-products,
  .sp-products > ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-product-card { grid-template-columns: 48px minmax(0, 1fr); gap: 13px; min-height: 0; padding: 18px 16px; border-radius: 15px; }
  .sp-product-icon { width: 48px; height: 52px; border-radius: 12px; }
  .sp-product-copy h3 { margin-top: 6px; font-size: 16px; }
  .sp-product-copy p { margin-top: 7px; }
  .sp-product-arrow { top: 19px; right: 14px; }
  .sp-dialog-footer { padding: 19px 20px 18px; }
  .sp-note { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-product-card { transition: none; }
  .sp-product-card:hover { transform: none; }
}

/* Keep all four choices and a clear store action visible on ordinary viewports. */
.sp-dialog-top { position: sticky; top: 0; z-index: 2; padding-top: 14px; padding-bottom: 8px; background: var(--sp-cream); }
.sp-dialog-top > img { width: 130px; }
.sp-intro { padding-top: 0; padding-bottom: 20px; }
.sp-intro .sp-eyebrow { margin: 0 0 10px; color: var(--sp-accent); font-size: 11px; line-height: 1.5; }
.sp-product-card { min-height: 150px; padding: 17px 18px; }
.sp-product-copy h3 { line-height: 1.4; }
.sp-dialog-footer { padding-top: 20px; padding-bottom: 16px; }
.sp-store-link { display: flex; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--sp-accent); border-radius: 12px; background: var(--sp-accent); color: #fff; font-size: 15px; text-decoration: none; }
.sp-store-link > span:first-child { font-size: 19px; font-weight: 900; line-height: 1; }
.sp-store-link > span:last-child { margin-left: auto; font-size: 21px; line-height: 1; }
.sp-store-link:hover { background: #a93027; }
.sp-note { text-align: center; }
.sp-actions { position: sticky; bottom: 0; z-index: 2; }
.sp-preview-main > .sp-eyebrow { justify-content: center; margin-top: 0; margin-bottom: 20px; color: var(--sp-accent); font-size: 11px; }
.sp-reopen { gap: 18px; }
@media (min-width: 621px) {
  #storePromotionTitle br, #storePromotionDescription br { display: none; }
}
@media (max-width: 620px) {
  .sp-intro { padding-top: 4px; }
  .sp-intro .sp-eyebrow { font-size: 10px; }
  .sp-product-card { padding: 14px; min-height: 0; }
  .sp-product-copy h3 { margin-top: 4px; line-height: 1.45; }
  .sp-product-copy h3 br { display: none; }
  .sp-product-copy p { display: none; }
  .sp-product-arrow { top: 16px; right: 12px; }
  .sp-dialog-footer { padding-top: 16px; padding-bottom: 14px; }
  .sp-store-link { font-size: 13px; padding-inline: 12px; }
  .sp-note { font-size: 10px; }
}

.store-promo { scroll-padding-block: 76px 64px; }
