/* UNWRAPPED — styles. Mobile first. Warm black + fire. */

:root {
  --bg: #140b07;
  --bg-2: #1f120b;
  --bg-3: #2b1910;
  --ink: #fff3e8;
  --ink-2: #e2c3ac;
  --ink-3: #b8937a;
  --line: rgba(255, 196, 150, 0.16);
  --line-2: rgba(255, 196, 150, 0.28);
  --ember: #ff5a1f;
  --flame: #ff8a1e;
  --gold: #ffc23d;
  --deep: #c8340d;
  --on-fire: #1c0a03;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: 20px;
  --col: 540px;

  --paper:
    linear-gradient(90deg, transparent calc(50% - 13px), var(--gold) calc(50% - 13px) calc(50% + 13px), transparent calc(50% + 13px)),
    linear-gradient(0deg, transparent calc(50% - 13px), var(--gold) calc(50% - 13px) calc(50% + 13px), transparent calc(50% + 13px)),
    repeating-linear-gradient(-45deg, var(--ember) 0 18px, var(--deep) 18px 36px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(255, 90, 31, 0.28), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--ember);
  overflow-x: hidden;
}

::selection { background: var(--ember); color: var(--on-fire); }

html { scrollbar-color: var(--bg-3) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 10px; border: 2px solid var(--bg); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Layout ---------- */

#app { min-height: 100dvh; }

.screen {
  position: relative;
  max-width: var(--col);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  animation: screen-in 420ms var(--ease-out);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 0 10px;
}
.topbar__title { text-align: center; font-weight: 700; font-size: 1rem; color: var(--ink-2); }
.topbar__count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); text-align: right; font-size: 0.95rem; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms, border-color 160ms, opacity 160ms;
}
.icon-btn:hover { background: var(--bg-3); border-color: var(--line-2); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), box-shadow 200ms, background 200ms, border-color 200ms, color 200ms;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

.btn--fire {
  background: linear-gradient(180deg, var(--flame), var(--ember) 60%, #f04a12);
  color: var(--on-fire);
  box-shadow: 0 12px 28px -12px rgba(255, 90, 31, 0.75), inset 0 1px 0 rgba(255, 230, 190, 0.55);
}
.btn--fire:hover { box-shadow: 0 16px 34px -12px rgba(255, 90, 31, 0.9), inset 0 1px 0 rgba(255, 230, 190, 0.65); }

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn--line:hover { border-color: var(--ink-3); background: rgba(255, 196, 150, 0.05); }

.btn--ghost { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg-3); }

.btn--quiet {
  background: none; color: var(--ink-3); min-height: 48px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2);
}
.btn--quiet:hover { color: var(--ink); }

.btn--xl { min-height: 64px; font-size: 1.2rem; width: 100%; }

/* ---------- Wrapping paper ---------- */

.wrap-band {
  position: absolute;
  inset: 0 calc(50% - 50vw) auto;
  height: calc(96px + env(safe-area-inset-top));
  background: var(--paper);
  background-size: 100% 100%, 100% 100%, auto;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 26px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 26px 100%;
  opacity: 0.95;
}

/* ---------- Home ---------- */

.home {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: calc(132px + env(safe-area-inset-top));
}

.invite {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.98rem;
}

.wordmark {
  font-size: clamp(3.6rem, 18.5vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
}

.home__lede {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 1.2rem;
  line-height: 1.38;
  color: var(--ink-2);
  text-wrap: pretty;
}

.teaser {
  position: relative;
  height: 210px;
  margin: 26px 0 8px;
}
.tag {
  position: absolute;
  left: 0;
  padding: 16px 22px 16px 46px;
  border-radius: 14px 30px 30px 14px;
  background: var(--ink);
  color: var(--on-fire);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}
.tag::before {
  content: "";
  position: absolute; left: 17px; top: 50%;
  width: 13px; height: 13px; margin-top: -6.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}
.tag span::after {
  content: "Starter Pack";
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 650;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  color: var(--deep);
}
.tag--a { top: 8px; transform: rotate(-5deg); }
.tag--b { top: 74px; left: 34%; transform: rotate(4deg); background: var(--gold); }
.tag--c { top: 140px; left: 9%; transform: rotate(-2deg); background: var(--flame); }
.tag--b span::after, .tag--c span::after { color: #7a1d04; }

.home__actions { margin-top: auto; display: grid; gap: 12px; padding-top: 18px; }
.home__meta { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 0.95rem; font-weight: 550; }

/* ---------- Quiz ---------- */

.progress { display: flex; gap: 5px; }
.progress__seg {
  flex: 1; height: 7px; border-radius: 4px;
  background: var(--bg-3);
  transition: background 260ms var(--ease-out);
}
.progress__seg.is-done { background: var(--ember); }
.progress__seg.is-current { background: var(--gold); }

.quiz__body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
  transition: opacity 180ms, transform 220ms var(--ease-out), filter 180ms;
}
.quiz__body.is-out { opacity: 0; transform: translateY(-16px); filter: blur(6px); }
.quiz__body.is-in { opacity: 0; transform: translateY(18px); transition: none; }

.quiz__q {
  font-size: clamp(2.15rem, 9.6vw, 3.4rem);
  font-weight: 780;
  font-variation-settings: "wdth" 85;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.quiz__hint { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; text-wrap: pretty; }
.quiz__hint:empty { display: none; }

.quiz__answers {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-bottom: 8px;
}
.btn--answer {
  min-height: 104px;
  border-radius: 28px;
  font-size: 1.9rem;
  font-weight: 800;
  font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em;
}
.btn--line.btn--answer { border-width: 2px; }
.btn--answer.is-picked { transform: scale(0.95); }

/* ---------- Results ---------- */

.results__head { padding: calc(36px + env(safe-area-inset-top)) 0 22px; }
.results__title {
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 82;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.results__sub { margin-top: 12px; color: var(--ink-2); font-size: 1.1rem; }

.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.pack {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}
.pack__inner {
  padding: 22px 22px 24px;
  transition: transform 700ms var(--ease-out), opacity 500ms;
}
.pack__name {
  font-size: clamp(1.75rem, 7.6vw, 2.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 80;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.pack__name small {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 650;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  color: var(--flame);
}
.pack__tag { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.pack__items { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: 9px; }
.pack__items li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: 1rem; }
.pack__items li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px;
  background: var(--ember); transform: translateY(-2px) rotate(45deg);
}

/* Upsell */
.upsell { margin-top: 40px; display: grid; gap: 12px; }
.upsell__title {
  font-size: 1.7rem; font-weight: 800; font-variation-settings: "wdth" 85;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.offer {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name price" "desc desc";
  gap: 6px 14px;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms, transform 140ms var(--ease-out);
}
.offer:hover { border-color: var(--ember); }
.offer:active { transform: scale(0.985); }
.offer__name { grid-area: name; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.offer__desc { grid-area: desc; color: var(--ink-2); font-size: 0.98rem; line-height: 1.4; }
.offer__price {
  grid-area: price;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ember); color: var(--on-fire);
  font-weight: 800; font-size: 0.98rem; font-variant-numeric: tabular-nums;
}
.offer__price svg { width: 16px; height: 16px; stroke-width: 2.6; }
.offer__price.is-unlocked { background: var(--gold); }
.upsell__bundle { color: var(--ink-2); font-size: 0.98rem; text-align: center; }
.upsell__bundle strong { color: var(--gold); }

#retake-btn { margin: 22px auto 0; }

.dock {
  position: sticky;
  bottom: 0;
  margin: 18px calc(-1 * var(--pad)) 0;
  padding: 26px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(20, 11, 7, 0), var(--bg) 42%);
  z-index: 5;
}
.screen--results { padding-bottom: 0; }

/* ---------- Poster ---------- */

.poster { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 6px; }
.poster__frame {
  width: min(100%, calc(60dvh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(255, 90, 31, 0.45), 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.poster__frame img { width: 100%; height: 100%; display: block; }
.poster__loading { color: var(--ink-3); font-weight: 600; }
.poster__actions { width: 100%; display: grid; gap: 10px; }
.poster__actions .btn--line { width: 100%; }
.poster__tip { color: var(--ink-3); font-size: 0.95rem; text-align: center; }

/* ---------- Unlock ---------- */

.unlock, .match, .duo, .future-result { padding-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.unlock__title, .match__title {
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 800; font-variation-settings: "wdth" 82;
  line-height: 1; letter-spacing: -0.03em; text-wrap: balance;
}
.unlock__sub, .match__sub { color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.unlock__offers { display: grid; gap: 12px; margin-top: 6px; }
.unlock__note { color: var(--ink-3); font-size: 0.92rem; text-align: center; }

.buy {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms, transform 140ms var(--ease-out), background 200ms;
}
.buy:hover { border-color: var(--flame); }
.buy:active { transform: scale(0.985); }
.buy.is-focus { border-color: var(--ember); background: linear-gradient(160deg, #3a1d0f, var(--bg-2)); }
.buy__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.buy__desc { grid-column: 1; color: var(--ink-2); font-size: 0.95rem; }
.buy__price {
  grid-row: 1 / span 2; grid-column: 2;
  font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold);
}
.buy--bundle { background: linear-gradient(160deg, #46200d, #26130a); border-color: rgba(255, 138, 30, 0.55); }
.buy--bundle .buy__desc strong { color: var(--gold); font-weight: 700; }
.buy.is-owned { opacity: 0.55; pointer-events: none; }

/* ---------- Fields & link box ---------- */

.field { display: grid; gap: 8px; }
.field__label { font-weight: 650; color: var(--ink-2); font-size: 0.98rem; }
.field__input {
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
}
.field__input::placeholder { color: var(--ink-3); font-weight: 500; }
.field__input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22); }

.linkbox {
  display: grid; gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
}
.linkbox__url {
  font-size: 0.95rem; font-weight: 600; color: var(--gold);
  word-break: break-all; font-variant-numeric: tabular-nums;
}
.linkbox__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linkbox__actions .btn { padding: 0 14px; white-space: nowrap; }
.linkbox__note { color: var(--ink-3); font-size: 0.92rem; }

/* ---------- Duo ---------- */

.duo { text-align: center; align-items: stretch; }
.duo__names { font-size: 1.25rem; font-weight: 750; color: var(--ink-2); text-wrap: balance; }
.duo__score {
  font-size: 6rem; font-weight: 800; font-variation-settings: "wdth" 78;
  line-height: 0.9; letter-spacing: -0.04em; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.duo__pct { font-size: 0.5em; margin-left: 4px; color: var(--flame); }
.duo__title {
  font-size: clamp(1.9rem, 8.5vw, 2.6rem); font-weight: 800; font-variation-settings: "wdth" 82;
  line-height: 1; letter-spacing: -0.03em; text-wrap: balance;
}
.duo__line { color: var(--ink-2); font-size: 1.1rem; margin-top: -6px; }
.duo__lists { display: grid; gap: 12px; margin: 10px 0 6px; text-align: left; }
.duo__group {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
}
.duo__group h3 { font-size: 1.05rem; font-weight: 750; color: var(--ink-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  padding: 7px 13px; border-radius: 999px;
  background: var(--bg-3); color: var(--ink);
  font-weight: 650; font-size: 0.95rem;
}
.chip--shared { background: var(--ember); color: var(--on-fire); }
.chips__empty { color: var(--ink-3); font-size: 0.98rem; }
.duo__send { display: grid; gap: 12px; text-align: left; margin-top: 6px; }
.duo .btn--line { width: 100%; }

/* ---------- 2027 ---------- */

.progress--future .progress__seg.is-done { background: var(--gold); }
.progress--future .progress__seg.is-current { background: var(--flame); }

.choices { display: grid; gap: 10px; padding-bottom: 8px; }
.choice {
  min-height: 64px;
  padding: 14px 20px;
  border-radius: 20px;
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit; font-size: 1.12rem; font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 140ms var(--ease-out);
}
.choice:hover { border-color: var(--flame); }
.choice:active, .choice.is-picked { transform: scale(0.98); background: var(--ember); color: var(--on-fire); border-color: var(--ember); }

.future-result__promise {
  font-size: clamp(1.5rem, 6.6vw, 2rem); font-weight: 750; font-variation-settings: "wdth" 88;
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink);
}
.future-result .pack { border-color: rgba(255, 194, 61, 0.4); }
.future-result .pack__name small { color: var(--gold); }


/* ---------- Reveal: one gift, one Starter Pack ---------- */

.reveal { position: relative; border-radius: var(--radius); }
.reveal .pack { min-height: 330px; }
.reveal .pack__inner {
  padding: 28px 24px 28px;
  transition: transform 800ms var(--ease-out) 120ms, opacity 500ms 120ms, filter 600ms 120ms;
}
.reveal:not(.is-open) .pack__inner { opacity: 0; transform: scale(0.94); filter: blur(10px); }
.reveal .pack__name { font-size: clamp(2.6rem, 12vw, 3.6rem); }
.reveal .pack__name small { font-size: 1.1rem; margin-top: 10px; }

.gift {
  position: absolute; inset: 0;
  display: grid; place-items: end center;
  padding: 0 0 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transform-origin: 100% 0;
  transition: transform 900ms var(--ease-out), opacity 600ms 250ms, visibility 0s 900ms;
  box-shadow: 0 24px 50px -24px rgba(255, 90, 31, 0.6);
  animation: gift-wiggle 2.6s var(--ease-out) 1s infinite;
}
.gift::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 84px; height: 66px; margin: -33px 0 0 -42px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, var(--gold) 45%, #d99512);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.5);
}
.gift__label {
  position: relative;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-fire);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}
@keyframes gift-wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-1.6deg); }
  82% { transform: rotate(1.4deg); }
  88% { transform: rotate(-0.8deg); }
}
.reveal.is-open .gift {
  animation: none;
  transform: translate(120%, -24%) rotate(18deg);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.reveal.no-anim .gift, .reveal.no-anim .pack__inner { transition: none; }

.pack__rare {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-fire);
  font-weight: 800;
  font-size: 0.9rem;
}
.pack--rare { border-color: rgba(255, 194, 61, 0.55); }

.why { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); animation: screen-in 500ms var(--ease-out) 300ms both; }
.why__title { font-size: 1.05rem; font-weight: 750; color: var(--ink-2); margin-bottom: 12px; }

/* ---------- Duo packs ---------- */

.duo__packs { display: grid; gap: 8px; margin-top: 8px; text-align: left; }
.duo__pack {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 18px; border-radius: 16px; background: var(--bg-3);
}
.duo__who { color: var(--ink-2); font-weight: 650; }
.duo__packname { font-weight: 800; text-align: right; color: var(--ink); }
.duo__same { text-align: center; color: var(--gold); font-weight: 700; }

/* ---------- Clickable story guide ---------- */

.clickable {
  width: 100%;
  margin-top: 8px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid; gap: 14px;
}
.clickable__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.clickable__sub { color: var(--ink-2); font-size: 1rem; margin-top: -6px; }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-2); }
.linkrow__url { font-size: 0.9rem; font-weight: 650; color: var(--gold); word-break: break-all; }
.linkrow__btn { min-height: 46px; padding: 0 16px; font-size: 1rem; }
.linkrow__btn svg { width: 18px; height: 18px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); }
.tab {
  min-height: 42px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--bg-3); color: var(--ink); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); }
.steps li::marker { color: var(--flame); font-weight: 800; }
.steps strong { color: var(--gold); }


/* ---------- Language switch ---------- */

.langswitch {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: var(--pad);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7);
  z-index: 3;
  display: flex; gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.langswitch--inline { position: static; }
.langswitch__btn {
  min-width: 44px; min-height: 36px;
  padding: 0 10px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-3);
  font: inherit; font-weight: 750; font-size: 0.9rem; letter-spacing: 0.02em;
  cursor: pointer;
}
.langswitch__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-fire); }
.results__foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#retake-btn { margin: 0; }

/* ---------- Product pages ---------- */

.checkout, .prewrapped { padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.page__title {
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 800; font-variation-settings: "wdth" 82;
  line-height: 1; letter-spacing: -0.03em; text-wrap: balance;
}
.page__sub { color: var(--ink-2); font-size: 1.08rem; text-wrap: pretty; }
.section__label { margin-top: 10px; font-size: 1.05rem; font-weight: 750; color: var(--ink-2); }

.products { display: grid; gap: 10px; }
.product {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  grid-template-areas: "radio name price" ". desc desc";
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: border-color 180ms, background 180ms, transform 140ms var(--ease-out);
}
.product:active { transform: scale(0.985); }
.product[aria-checked="true"] { border-color: var(--ember); background: linear-gradient(160deg, #3a1d0f, var(--bg-2)); }
.product--bundle { border-style: dashed; }
.product__radio { grid-area: radio; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; }
.product[aria-checked="true"] .product__radio { border-color: var(--ember); }
.product[aria-checked="true"] .product__radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--ember); }
.product__name { grid-area: name; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.product__desc { grid-area: desc; color: var(--ink-2); font-size: 0.95rem; }
.product__desc strong { color: var(--gold); font-weight: 700; }
.product__price { grid-area: price; font-weight: 800; font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.segmented__btn {
  min-height: 46px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-2);
  font: inherit; font-weight: 750; font-size: 1rem; letter-spacing: 0.02em; cursor: pointer;
}
.segmented__btn[aria-checked="true"] { background: var(--ink); color: var(--on-fire); }

.methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 14px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  font-weight: 700;
}
.method svg { color: var(--flame); }
.checkout__note { color: var(--ink-3); font-size: 0.92rem; }

.dock--checkout {
  display: grid; gap: 10px; margin-top: auto;
  padding-top: 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 30px -12px rgba(20, 11, 7, 0.95);
}
.checkout { padding-bottom: 24px; }
.screen--checkout { padding-bottom: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.total__label { color: var(--ink-2); font-weight: 650; }
.total__price { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
#co-pay.is-disabled { opacity: 0.5; pointer-events: none; }
.checkout__secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--ink-3); font-size: 0.88rem; text-align: center; }
.checkout__secure svg { width: 18px; height: 18px; color: var(--ink-3); }

.example {
  margin: 4px 0 6px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #3a1d0f, var(--bg-2));
  border: 1px solid rgba(255, 138, 30, 0.45);
  text-align: center;
  position: relative;
}
.example__cap {
  position: absolute; top: 12px; left: 14px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-3); color: var(--ink-2);
  font-size: 0.8rem; font-weight: 700;
}
.example__names { color: var(--ink-2); font-weight: 700; margin-top: 10px; }
.example__score { font-size: 4.5rem; font-weight: 800; font-variation-settings: "wdth" 78; line-height: 1; color: var(--gold); letter-spacing: -0.04em; }
.example__score span { font-size: 0.5em; color: var(--flame); margin-left: 3px; }
.example__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.steps--big { gap: 12px; font-size: 1.05rem; }
#match-cta { margin-top: 8px; }
.match__open { display: grid; gap: 14px; }

.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: q; }
.qlist li {
  counter-increment: q;
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 18px; border-radius: 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: 1.12rem; font-weight: 700;
}
.qlist li::before { content: counter(q); color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
#pw-cta { margin-top: 10px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  top: calc(70px + env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 50;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  text-align: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-fire);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8);
  animation: toast-in 320ms var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- Larger screens ---------- */

@media (min-width: 768px) {
  :root { --pad: 28px; }
  body { font-size: 18px; }
  .wrap-band { height: 120px; }
  .home { padding-top: 170px; }
  .teaser { height: 230px; }
  .tag { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
