

.promo-bar,
.promo-sheet {
  color-scheme: dark;
  --bg: #0A0B11;
  --panel: #13151E;
  --panel-2: #14161F;
  --sunken: #0E1017;
  --ink: #E9EBF4;
  --ink-2: #A2A8BF;
  --ink-3: #8A90A8;
  --line: #232637;
  --line-2: #363C58;
  --accent: #8F94FF;
  --accent-press: #7A80F0;
  --on-accent: #0A0B11;
  --wash: #1B1D33;
  --ok: #4FC98C;
  --mark-graphite: #B7BDD2;
  color: var(--ink);
}

.promo-bar { display: none; }
html.promo-live:not(.promo-dismissed) .promo-bar { display: grid; }
.promo-bar {
  grid-template-rows: 1fr;
  background: #161827;
  border-bottom: 1px solid #262A40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: grid-template-rows 0.2s ease, padding-top 0.2s ease;
}

.promo-bar.is-leaving { grid-template-rows: 0fr; padding-top: 0; border-bottom-color: transparent; }
.promo-bar-clip { min-height: 0; overflow: hidden; }
.promo-bar-in { display: flex; align-items: center; min-height: 44px; }

.promo-bar-in::before { content: ''; flex: none; width: 34px; }

.promo-bar-open {
  flex: 1 1 auto; min-width: 0; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font: inherit; font-size: 0.9063rem; line-height: 1.3;
  text-align: left; cursor: pointer;
}
.promo-bar-t { display: flex; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; }
.promo-bar-t b { font-weight: 600; letter-spacing: -0.005em; }
.promo-bar-note { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.promo-bar-note::before { content: '·'; margin-right: 10px; color: var(--ink-3); }
.promo-bar-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  margin-left: 8px; color: var(--accent); font-weight: 500; white-space: nowrap;
}
.promo-arrow { flex: none; transition: transform 0.15s ease; }
.promo-bar-open:hover .promo-arrow { transform: translateX(2px); }
.promo-bar-open:hover .promo-bar-cta-t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.promo-mark { flex: none; }

.promo-bar-x {
  flex: none; width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.promo-bar-x:hover { color: var(--ink); background: var(--wash); }

.promo-bar-open:focus-visible, .promo-bar-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

.promo-offer { display: none; }
html.promo-live .promo-offer { display: grid; }
.promo-offer {
  position: relative; max-width: 540px; margin-top: 26px;
  grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 6px; align-items: center;
  padding: 15px 18px 15px 22px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 16px;
  transition: border-color 0.15s ease;
}
.promo-offer::before {
  content: ''; position: absolute; left: -1px; top: 15px; bottom: 15px; width: 2px;
  border-radius: 2px; background: var(--accent);
}
.promo-offer:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.promo-offer-h {
  grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3;
}
.promo-offer-note { color: var(--ink-2); font-weight: 500; }

.promo-offer-flow {
  grid-column: 1 / -1; grid-row: 2; list-style: none; padding: 0 0 0 28px;
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px;
  color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45;
}
.promo-offer-flow li { display: inline-flex; align-items: center; white-space: nowrap; }
.promo-offer-flow li:not(:last-child)::after {
  content: ''; flex: none; width: 22px; height: 5px; margin: 0 8px 0 7px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left center / 16px 1px no-repeat,
    radial-gradient(circle, var(--accent) 2.4px, transparent 2.6px) right center / 5px 5px no-repeat;
}
.promo-offer-cta {
  grid-column: 2; grid-row: 1;
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 2px;
  border: 0; background: none; color: var(--accent);
  font: inherit; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.promo-offer-cta::after { content: ''; position: absolute; inset: -1px; border-radius: 16px; }
.promo-offer-cta:focus-visible { outline: none; }
.promo-offer-cta:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.promo-offer:hover .promo-offer-cta .promo-arrow { transform: translateX(2px); }

html.promo-live .promo-offer ~ .hero-free { display: none; }
html.promo-live .promo-offer + .stores-hero { margin-top: 22px; }

.free-promo { display: none; }
html.promo-live .free-std { display: none; }
html.promo-live .free-promo { display: inline; }
html.promo-live p.free-promo { display: block; }
.free-note { color: var(--ink); font-weight: 500; }
.trial-note { margin-bottom: 10px; }

html.promo-open {
  overflow: hidden; scrollbar-gutter: stable;
  background-color: color-mix(in srgb, var(--bg) 38%, #06070C);
}

.promo-sheet {
  width: min(480px, calc(100% - 32px)); max-width: none; max-height: none;
  margin: auto; padding: 0; overflow: hidden;
  background: var(--panel); color: var(--ink);
  border: 1px solid #2A2E45; border-radius: var(--r-panel, 24px);
}
.promo-sheet::backdrop { background: rgba(6, 7, 12, 0.62); }

.promo-in {
  position: relative;
  padding: 26px 28px 22px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto; overscroll-behavior: contain;
}

.promo-route { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.promo-route::before {
  content: ''; position: absolute; left: 0; top: 0; width: 44%; height: 1px;
  background: var(--accent); transform-origin: left center;
}
.promo-route::after {
  content: ''; position: absolute; left: 44%; top: -2px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}

.promo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.promo-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.promo-x {
  flex: none; width: 44px; height: 44px; margin: -10px -12px -10px 0;
  display: grid; place-items: center;
  border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.promo-x:hover { color: var(--ink); background: var(--wash); }

.promo-h { margin-top: 14px; font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2rem); line-height: 1.08; letter-spacing: -0.025em; }
.promo-h:focus { outline: none; }
.promo-lead { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

.promo-seg {
  margin-top: 22px; padding: 4px; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 14px;
}
.promo-seg-o { position: relative; display: block; }
.promo-seg-o input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.promo-seg-o span {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 500; color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.promo-seg-o input:hover + span { color: var(--ink); }
.promo-seg-o input:checked + span {
  background: var(--wash); color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.promo-seg-o input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.promo-cards { margin-top: 18px; }
.promo-card[hidden] { display: none; }

.promo-steps { list-style: none; padding: 0; counter-reset: ps; display: grid; gap: 18px; }
.promo-step { counter-increment: ps; position: relative; padding-left: 38px; min-width: 0; }
.promo-step::before {
  content: counter(ps); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--accent);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}
.promo-step:not(:last-child)::after {
  content: ''; position: absolute; left: 12.5px; top: 29px; bottom: -15px; width: 1px;
  background: var(--line-2);
}
.promo-step-h { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: -0.005em; }
.promo-step > .promo-ticket, .promo-step > .promo-store { margin-top: 10px; }

.promo-ticket {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 14px 14px 18px;
  background: var(--sunken); border: 1px dashed var(--line-2); border-radius: 16px;
}
.promo-code-box { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.promo-code-l {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.promo-code {
  font-family: var(--mono); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--ink); overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all;
}
.promo-copy {
  flex: none; display: inline-grid; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
  color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.promo-copy > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: opacity 0.15s ease; }
.promo-copy-ok { opacity: 0; color: var(--ok); }
.promo-copy:hover { border-color: var(--accent); background: var(--wash); }
.promo-copy.is-copied { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.promo-copy.is-copied .promo-copy-t { opacity: 0; }
.promo-copy.is-copied .promo-copy-ok { opacity: 1; }

.promo-hint { margin-top: 2px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.promo-store { --bh: 44px; display: flex; }

.promo-sign {
  position: relative; margin-top: 22px; padding-top: 16px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

.promo-clip { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 720px) {
  
  .promo-code-l, .promo-sign { font-size: 0.75rem; }
  .promo-bar-note { display: none; }
  .promo-bar-in::before { display: none; }
  .promo-bar-open { justify-content: flex-start; padding-left: 0; font-size: 0.9375rem; }
  .promo-bar-cta { margin-left: auto; }
  
  .promo-offer { margin-top: 22px; padding-top: 5px; padding-bottom: 7px; }
  .promo-offer-cta { min-height: 44px; }
}

@media (max-width: 560px) {
  .promo-offer { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 2px 16px; row-gap: 6px; }
  .promo-offer::before { top: 14px; bottom: 14px; }
  
  .promo-offer-flow { padding-left: 0; }
  .promo-offer-flow li:not(:last-child)::after { width: 14px; margin: 0 5px 0 4px; background-size: 8px 1px, 5px 5px; }
  .promo-offer-cta { grid-column: 1; grid-row: auto; padding-left: 0; }
}

@media (max-width: 374px) {
  .promo-offer { padding: 14px 12px 2px 14px; }
  .promo-offer-flow li:not(:last-child)::after { width: 9px; margin: 0 4px; background-size: 4px 1px, 5px 5px; }
}
@media (max-width: 359px) {
  .promo-offer-h { font-size: 1.0625rem; gap: 8px; }
}
@media (max-width: 639px) {
  .promo-sheet {
    width: var(--promo-vw, 100%); margin: auto 0 0;
    border-width: 1px 0 0; border-radius: 24px 24px 0 0;
  }
  .promo-in {
    padding: 24px max(20px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .promo-store { --bh: 48px; }
}

@media (max-width: 420px) {
  .promo-bar-cta-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .promo-ticket { padding: 14px; }
  .promo-copy { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  .promo-bar-open { gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .promo-sheet[open] { animation: promo-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .promo-sheet[open]::backdrop { animation: promo-fade 0.2s ease; }
  .promo-sheet[open] .promo-route::before { animation: promo-draw 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.06s both; }
  .promo-sheet[open] .promo-route::after { animation: promo-fade 0.2s ease 0.48s both; }
  .promo-sheet.is-closing { animation: promo-unpop 0.15s ease-in forwards; }
  .promo-sheet.is-closing::backdrop { animation: promo-fade-out 0.15s ease-in forwards; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 639px) {
  .promo-sheet[open] { animation-name: promo-up; animation-duration: 0.26s; }
  .promo-sheet.is-closing { animation-name: promo-down; animation-duration: 0.18s; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-bar { transition: none; }
  .promo-arrow, .promo-copy > span { transition: none; }
  .promo-bar-open:hover .promo-arrow, .promo-offer:hover .promo-offer-cta .promo-arrow { transform: none; }
  .promo-offer { transition: none; }
}
@keyframes promo-pop { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes promo-unpop { to { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes promo-up { from { transform: translateY(100%); } }
@keyframes promo-down { to { transform: translateY(100%); } }
@keyframes promo-fade { from { opacity: 0; } }
@keyframes promo-fade-out { to { opacity: 0; } }
@keyframes promo-draw { from { transform: scaleX(0); } }

@media print {
  .promo-bar, .promo-offer { display: none !important; }
}
