/* The Fame Cell — dark mode, orange from the logo */
:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --surface: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --fg: #f5f5f7;
  --fg-2: #a8a8ad;
  --fg-3: #838388;
  --accent: #ff5c00;
  --accent-hi: #ff7424;
  --accent-ink: #ff8a47;
  --on-accent: #0a0a0b;
  --warm: #ffb27f;
  --wa: #25d366;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);

  --pad: clamp(20px, 5.5vw, 56px);
  --radius: 22px;
  --nav-h: 56px;

  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 10px; }
html { scrollbar-color: #34343a var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--bg);
  transition: opacity 700ms var(--ease-out), visibility 700ms;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: 150px; height: auto; display: block; }
.loader__bar { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 300ms var(--ease-out); }

/* ---------- Stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
}
.stage canvas { width: 100%; height: 100%; display: block; }
.stage__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 35%, transparent 55%, rgba(10, 10, 11, 0.72) 100%);
}
.stage.is-hidden { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; gap: 24px;
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 500ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-color: var(--line);
}
.nav__brand { display: inline-flex; align-items: center; margin-left: -4px; }
.nav__brand img { display: block; height: 42px; width: auto; }
.nav__links { display: none; gap: 28px; margin-left: auto; font-size: 13px; color: var(--fg-2); }
.nav__links a { transition: color 200ms ease; }
.nav__cart {
  position: relative; margin-left: auto;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.nav__cart:active { transform: scale(0.94); }
.nav__count {
  position: absolute; top: 5px; right: 3px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  font: 700 11px/18px var(--text); text-align: center; font-variant-numeric: tabular-nums;
  transform: scale(1); transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
.nav__count[data-count="0"] { opacity: 0; transform: scale(0.6); }
.nav__count.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); }
  .nav__cart:hover { background: rgba(255, 255, 255, 0.06); }
}
@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__cart { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--text); letter-spacing: -0.005em;
  user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--fg); color: #0a0a0b; }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #fff; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
}

/* ---------- Story ---------- */
.story { position: relative; z-index: 1; }
.chapter {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) calc(56px + env(safe-area-inset-bottom));
}
.chapter + .chapter { min-height: 130svh; }
.copy {
  position: relative;
  max-width: 30rem;
}
.copy h2 {
  font-size: clamp(30px, 8.4vw, 60px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
}
.copy p {
  margin-top: 14px; font-size: clamp(16px, 4.3vw, 19px); line-height: 1.5; color: var(--fg-2);
  max-width: 34ch;
}
.copy .btn { margin-top: 22px; }
.copy::before {
  /* legibility scrim behind text, mobile */
  content: ""; position: absolute; z-index: -1;
  inset: -40vh calc(var(--pad) * -1) -60px;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.94) 25%, rgba(10, 10, 11, 0) 70%);
  pointer-events: none;
}

/* reveal states (JS adds .is-in) */
.js .chapter:not(.chapter--hero) .copy > * { opacity: 0; transform: translateY(24px); filter: blur(8px); }
.js .chapter:not(.chapter--hero) .copy.is-in > * {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out);
}
.js .copy.is-in > :nth-child(2) { transition-delay: 90ms; }
.js .copy.is-in > :nth-child(3) { transition-delay: 160ms; }

/* Hero */
.chapter--hero { align-items: flex-end; }
.copy--hero { max-width: 40rem; }
.hero__title {
  font-size: clamp(52px, 16vw, 112px);
  line-height: 0.92; letter-spacing: -0.04em; font-weight: 700;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: block; }
.hero__title .line:nth-child(2) > span {
  color: var(--accent);
}
.hero__sub { margin-top: 16px; font-size: clamp(16px, 4.4vw, 20px); color: var(--fg-2); max-width: 30ch; }
.hero__ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__sub, .js .hero__ctas { opacity: 0; transform: translateY(16px); }
.is-ready .hero__title .line > span { transform: none; transition: transform 1100ms var(--ease-out); }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 80ms; }
.is-ready .hero__sub, .is-ready .hero__ctas { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) 260ms, transform 900ms var(--ease-out) 260ms; }
.is-ready .hero__ctas { transition-delay: 340ms; }

.scroll-hint {
  position: absolute; right: var(--pad); bottom: calc(64px + env(safe-area-inset-bottom));
  width: 1px; height: 54px; background: var(--line-2); overflow: hidden;
}
.scroll-hint span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--fg); animation: hint 2.2s var(--ease-in-out) infinite; }
@keyframes hint { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (min-width: 900px) {
  .chapter { align-items: center; padding-bottom: 0; }
  .chapter--hero { align-items: center; }
  .copy::before { display: none; }
}

/* ---------- Promo ---------- */
.promo {
  position: relative; z-index: 2;
  background: var(--bg);
  padding: clamp(80px, 16vw, 160px) var(--pad);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.promo::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 92, 0, 0.22), transparent 70%);
  pointer-events: none;
}
.promo__inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; gap: 48px; }
.promo__bundle {
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 22px);
  color: var(--fg);
}
.bundle__item { margin: 0; }
.bundle__item svg { display: block; height: auto; }
.bundle__item--phone svg { width: clamp(84px, 26vw, 150px); filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.bundle__item--buds svg { width: clamp(58px, 17vw, 100px); color: var(--warm); }
.bundle__item--case svg { width: clamp(72px, 22vw, 128px); color: var(--accent-ink); }
.bundle__plus { font: 300 clamp(22px, 6vw, 36px)/1 var(--display); color: var(--fg-3); }

.js .promo__bundle > * { opacity: 0; transform: translateY(30px) scale(0.96); }
.js .promo.is-in .promo__bundle > * {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out);
}
.js .promo.is-in .promo__bundle > :nth-child(2) { transition-delay: 60ms; }
.js .promo.is-in .promo__bundle > :nth-child(3) { transition-delay: 120ms; }
.js .promo.is-in .promo__bundle > :nth-child(4) { transition-delay: 180ms; }
.js .promo.is-in .promo__bundle > :nth-child(5) { transition-delay: 240ms; }

.promo__copy { text-align: center; display: grid; justify-items: center; }
.promo__copy h2 { font-size: clamp(40px, 11vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; }
.promo__plus { color: var(--fg-2); font-weight: 600; font-size: 0.62em; letter-spacing: -0.03em; display: inline-block; margin-top: 0.3em; }
.promo__price { margin-top: 22px; }
.promo__price .price {
  font: 600 clamp(36px, 10vw, 60px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  color: var(--warm);
}
.promo { --promo-body: #1d1d1f; --promo-edge: #5a5a5f; }
.promo[data-color="Gris"] { --promo-body: #8e8e93; --promo-edge: #c7c7cc; }
.bundle__item--phone rect { transition: fill 400ms var(--ease-out), stroke 400ms var(--ease-out); }
.promo__colors { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.promo__color-label { font-size: 15px; color: var(--fg-2); min-width: 4ch; }
.promo__perks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; color: var(--fg-2); font-size: 15px; }
.promo__perks li { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.promo__perks svg { width: 22px; height: 22px; color: var(--fg); }

@media (min-width: 900px) {
  .promo__inner { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .promo__copy { text-align: left; justify-items: start; }
  .promo__perks li { justify-content: flex-start; }
}

/* ---------- Store ---------- */
.store {
  position: relative; z-index: 2; background: var(--bg);
  padding: clamp(72px, 14vw, 140px) var(--pad) 80px;
  max-width: 1200px; margin: 0 auto;
}
.store__head { display: grid; gap: 22px; }
.store__head h2 { font-size: clamp(36px, 10vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.store__note { margin-top: 14px; color: var(--fg-2); font-size: 15px; min-height: 1.5em; transition: opacity 250ms ease; }

.segmented {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 300px); height: 44px; padding: 4px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.segmented button { position: relative; z-index: 1; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--fg-2); transition: color 250ms ease; }
.segmented button[aria-selected="true"] { color: #0a0a0b; }
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 380ms var(--ease-sheet);
}
.segmented[data-active="used"] .segmented__thumb { transform: translateX(100%); }

@media (min-width: 900px) {
  .store__head { grid-template-columns: 1fr auto; align-items: end; }
}

.list { margin-top: 34px; display: grid; gap: 14px; }
@media (min-width: 760px) { .list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .list { grid-template-columns: 1fr 1fr 1fr; } }

.item {
  position: relative; display: grid; gap: 16px; align-content: start;
  padding: 22px 20px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #17171a, #111113);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}
.item__media {
  margin: -8px -6px 4px; height: clamp(170px, 46vw, 220px);
  border-radius: 16px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  padding: 18px 16px;
}
.item__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 700ms var(--ease-out); }
.item__media--art svg { height: 82%; width: auto; }
@media (hover: hover) and (pointer: fine) { .item:hover .item__media img { transform: scale(1.035); } }
.item__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.item__name { font: 600 21px/1.15 var(--display); letter-spacing: -0.02em; }
.item__meta { margin-top: 6px; font-size: 13.5px; color: var(--fg-2); }
.badge {
  flex: none; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  color: var(--accent-ink); background: rgba(255, 92, 0, 0.14);
}
.badge--quiet { color: var(--fg-2); background: rgba(255, 255, 255, 0.06); }

.battery { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.battery__bar { flex: 1; max-width: 120px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.battery__bar span { display: block; height: 100%; border-radius: 3px; background: var(--warm); transform-origin: left; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 200ms ease, color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-checked="true"] { color: var(--fg); background: rgba(255,255,255,0.07); box-shadow: inset 0 0 0 1.5px var(--fg); }
.swatches { display: flex; gap: 10px; align-items: center; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), inset 0 -6px 10px rgba(0,0,0,0.25);
  transition: transform 160ms var(--ease-out);
}
.swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1.5px transparent; transition: box-shadow 200ms ease; }
.swatch[aria-checked="true"]::after { box-shadow: 0 0 0 1.5px var(--fg); }
.swatch:active { transform: scale(0.9); }
.swatch-label { font-size: 13px; color: var(--fg-2); margin-left: 4px; }

.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.item__price { font: 600 22px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.item__price small { display: block; margin-top: 6px; font: 400 12.5px/1 var(--text); color: var(--fg-3); letter-spacing: 0; }
.add {
  height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.add:active { transform: scale(0.96); }
.add svg { width: 18px; height: 18px; }
.add.is-added { background: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .add:hover { background: var(--accent-hi); }
  .chip:hover { color: var(--fg); }
}

/* list swap animation */
.list.is-swapping .item { opacity: 0; transform: translateY(10px); }
.item { transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); }
.item.is-enter { opacity: 0; transform: translateY(16px); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2; background: var(--bg);
  padding: 56px var(--pad) calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--fg-2); font-size: 14px; display: grid; gap: 6px;
}
.footer__logo { width: 110px; height: auto; margin-bottom: 12px; }
.footer__fine { font-size: 12px; color: var(--fg-3); margin-top: 10px; }

/* ---------- Sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-out);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0;
  max-height: 88svh; display: flex; flex-direction: column;
  background: #151517; border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(105%);
  transition: transform 500ms var(--ease-sheet);
  padding-bottom: env(safe-area-inset-bottom);
  touch-action: none;
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-dragging { transition: none; }
.sheet__grab { display: grid; place-items: center; height: 26px; cursor: grab; }
.sheet__grab span { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.22); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 8px; }
.sheet__head h2 { font-size: 24px; letter-spacing: -0.03em; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); transition: transform 160ms var(--ease-out); }
.icon-btn:active { transform: scale(0.92); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; touch-action: pan-y; }
.sheet__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; color: var(--fg-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.sum--total { color: var(--fg); font: 600 20px/1.3 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
@media (min-width: 760px) {
  .sheet { left: auto; right: 16px; bottom: 16px; top: 16px; width: 420px; max-height: none; border-radius: 26px; transform: translateX(110%); }
  .sheet.is-open { transform: none; }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 20px; }
}

.cline {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cline__name { font-weight: 600; font-size: 16px; }
.cline__meta { font-size: 13px; color: var(--fg-2); grid-column: 1; }
.cline__price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; grid-column: 1; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); transition: transform 160ms var(--ease-out); }
.qty button:active { transform: scale(0.9); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cline__remove { grid-column: 2; grid-row: 2 / span 2; align-self: end; font-size: 13px; color: var(--fg-3); padding: 8px 0; }

.empty { padding: 40px 0 48px; text-align: center; color: var(--fg-2); display: grid; gap: 16px; justify-items: center; }
.empty strong { color: var(--fg); font: 600 19px/1.2 var(--display); }
.done { padding: 32px 0 40px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.done__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(37, 211, 102, 0.16); color: var(--wa); }
.done__check svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 600ms var(--ease-out) 150ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done strong { font: 600 22px/1.2 var(--display); letter-spacing: -0.02em; }
.done p { color: var(--fg-2); max-width: 30ch; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translate(-50%, 40px); opacity: 0;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(32, 32, 36, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px var(--line);
  font-size: 14px; white-space: nowrap;
  transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .chapter:not(.chapter--hero) .copy > *,
  .js .hero__title .line > span,
  .js .hero__sub, .js .hero__ctas,
  .js .promo__bundle > * { transform: none !important; filter: none !important; }
  .scroll-hint span { animation: none; }
  .sheet, .toast, .segmented__thumb { transition-duration: 1ms; }
}

/* ---------- Brand additions ---------- */
.btn--wa {
  background: var(--wa); color: #052b13; font-weight: 600;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--wa svg { flex: none; }
.btn--wa .btn__arrow { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn--wa:hover .btn__arrow { transform: translateX(3px); } }
@media (hover: hover) and (pointer: fine) { .btn--wa:hover { background: #3be07a; } }

.link-ig {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 500; color: var(--accent-ink);
  text-decoration: underline; text-decoration-color: rgba(255, 138, 71, 0.4); text-underline-offset: 4px;
}
.link-ig svg { width: 20px; height: 20px; }

.pay { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay li {
  height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--fg);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2);
}

.seller {
  position: relative; z-index: 2; background: var(--bg);
  padding: clamp(72px, 14vw, 140px) var(--pad) 72px;
  border-top: 1px solid var(--line);
  display: grid; justify-items: start; max-width: 1200px; margin: 0 auto;
}
.seller h2 { font-size: clamp(36px, 10vw, 64px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.seller__lead { margin: 16px 0 28px; color: var(--fg-2); font-size: clamp(16px, 4.3vw, 19px); max-width: 38ch; }
.facts { margin: 48px 0 0; padding: 0; display: grid; width: 100%; border-top: 1px solid var(--line); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--fg-2); }
.facts dd { margin: 0; text-align: right; color: var(--fg); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
.socials { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; width: 100%; }
.socials a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 18px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.socials a:active { transform: scale(0.98); }
.socials__handle { font-weight: 600; }
.socials__role { font-size: 13px; color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { box-shadow: inset 0 0 0 1px var(--accent); } }
@media (min-width: 760px) { .socials { grid-template-columns: repeat(3, 1fr); } }

.sheet__foot[hidden] { display: none; }
.sheet__note { font-size: 12.5px; color: var(--fg-3); text-align: center; margin-top: 4px; }

.wa-float {
  position: fixed; z-index: 35; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #06210f;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translateY(0) scale(1); opacity: 1;
  transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out);
}
.wa-float:active { transform: scale(0.94); }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

/* ---------- Checkout ---------- */
.btn--accent { background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: 0 10px 28px -12px rgba(255, 92, 0, 0.7); }
@media (hover: hover) and (pointer: fine) { .btn--accent:hover { background: var(--accent-hi); } }
.btn--accent svg { flex: none; }

.co { display: grid; gap: 22px; padding-bottom: 12px; }
.co fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.co legend { font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; margin-bottom: 12px; padding: 0; }
.co__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px;
  height: 36px; margin-left: -6px; padding: 0 8px; border-radius: 10px;
  font-size: 14px; color: var(--fg-2);
}
.co__back:active { transform: scale(0.97); }

.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 220ms ease, background-color 220ms ease, transform 160ms var(--ease-out);
}
.opt:active { transform: scale(0.985); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt.is-on { background: rgba(255, 92, 0, 0.08); box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.opt__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: var(--fg); transition: color 220ms ease, background-color 220ms ease; }
.opt.is-on .opt__icon { color: var(--accent); background: rgba(255, 92, 0, 0.14); }
.opt__icon svg { width: 22px; height: 22px; }
.opt__text { display: grid; gap: 2px; }
.opt__text strong { font-size: 15.5px; font-weight: 600; }
.opt__text small { font-size: 13px; color: var(--fg-2); }

.co__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label { font-size: 13px; color: var(--fg-2); }
.fld__opt { color: var(--fg-3); }
.fld input, .fld select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 0;
  font: 400 16px/1 var(--text); color: var(--fg);
  background: #0f0f11; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 180ms ease;
  -webkit-appearance: none; appearance: none;
}
.fld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a8a8ad' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px;
}
.fld input::placeholder { color: #5c5c62; }
.fld input:focus, .fld select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.fld input { caret-color: var(--accent); }
.fld__err { font-size: 12.5px; color: #ff8a73; min-height: 0; }
.fld.is-invalid input, .fld.is-invalid select { box-shadow: inset 0 0 0 1.5px #ff6b4a; }
.fld.is-invalid .fld__err { animation: errIn 260ms var(--ease-out); }
@keyframes errIn { from { opacity: 0; transform: translateY(-3px); } }

.co__summary { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.03); font-size: 14px; color: var(--fg-2); }
.co__summary div { display: flex; justify-content: space-between; gap: 12px; }
.co__summary span:last-child { color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.done b { color: var(--fg); font-weight: 600; }

/* ---------- Tía Saturdina ---------- */
.tia {
  position: relative; z-index: 2; background: var(--bg);
  padding: clamp(64px, 12vw, 120px) var(--pad) clamp(40px, 8vw, 96px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.tia::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 140%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(50% 55% at 50% 100%, rgba(255, 92, 0, 0.2), transparent 70%);
  pointer-events: none;
}
.tia__inner {
  position: relative; max-width: 1100px; margin: 0 auto; display: grid; justify-items: center;
  grid-template-areas: "bubble" "fig" "after";
}
.bubble { grid-area: bubble; max-width: 30rem; text-align: center; }
.tia__fig { grid-area: fig; position: relative; margin: 30px 0 0; width: min(74vw, 340px); }
.tia__after { grid-area: after; display: grid; justify-items: center; gap: 16px; margin-top: 22px; }
.tia__char { position: relative; aspect-ratio: 534 / 760; transform-origin: 50% 100%; }
.tia__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45)); }
.tia__frame--b { opacity: 0; }
.tia__floor {
  position: absolute; left: 16%; right: 16%; bottom: -6px; height: 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  transform-origin: center;
}

.bubble {
  position: relative; margin: 0;
  padding: 22px 24px 24px; border-radius: 28px;
  background: #fff; color: #121214;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 92, 0, 0.9) inset;
  transform-origin: 32% 110%;
}
.bubble p { font: 700 clamp(22px, 6.4vw, 34px)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.bubble::after {
  content: ""; position: absolute; left: 30%; bottom: -24px; width: 38px; height: 28px;
  background: #fff; clip-path: polygon(0 0, 100% 0, 12% 100%);
}
.tia__who { font-size: 14px; color: var(--fg-2); }
.tia__who a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.tia__cta { margin-top: 4px; }

@media (min-width: 860px) {
  .tia__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "fig bubble" "fig after"; align-items: end; column-gap: 40px; }
  .bubble { text-align: left; justify-self: start; }
  .tia__after { justify-items: start; align-self: start; }
  .tia__fig { width: min(100%, 420px); margin: 0; justify-self: end; }
  .bubble { transform-origin: -6% 60%; }
  .bubble::after { left: -22px; bottom: auto; top: 54%; width: 30px; height: 36px; clip-path: polygon(100% 0, 100% 100%, 0 30%); }
}

/* entrance + idle (JS adds .is-in when the module is on screen) */
.js .tia .tia__char { opacity: 0; transform: translateY(48px) rotate(5deg) scale(0.94); }
.js .tia .bubble { opacity: 0; transform: scale(0.6); }
.js .tia .tia__who, .js .tia .tia__cta { opacity: 0; transform: translateY(10px); }
.js .tia.is-in .tia__char {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out), transform 900ms cubic-bezier(0.34, 1.45, 0.64, 1);
}
.js .tia.is-in .bubble {
  opacity: 1; transform: none;
  transition: opacity 260ms var(--ease-out) 420ms, transform 620ms cubic-bezier(0.34, 1.6, 0.64, 1) 420ms;
}
.js .tia.is-in .tia__who, .js .tia.is-in .tia__cta {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out) 760ms, transform 600ms var(--ease-out) 760ms;
}
.tia.is-idle .tia__char { animation: tiaBob 2.6s ease-in-out infinite; }
.tia.is-idle .tia__frame--b { animation: tiaSwap 1.2s steps(1, end) infinite; }
.tia.is-idle .tia__frame--a { animation: tiaSwapA 1.2s steps(1, end) infinite; }
.tia.is-idle .tia__floor { animation: tiaFloor 2.6s ease-in-out infinite; }
.tia.is-idle .bubble { animation: tiaFloat 3.4s ease-in-out infinite; }
@keyframes tiaBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-0.8deg); } }
@keyframes tiaSwap { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes tiaSwapA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes tiaFloor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.9); opacity: 0.75; } }
@keyframes tiaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- Fame Pay (pasarela demo) ---------- */
.gw {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}
.gw.is-open { opacity: 1; pointer-events: auto; }
.gw__panel {
  width: 100%; max-height: 94svh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: #121214;
  border-radius: 24px 24px 0 0;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 480ms var(--ease-sheet);
}
.gw.is-open .gw__panel { transform: none; }
@media (min-width: 760px) {
  .gw { align-items: center; }
  .gw__panel { width: 440px; border-radius: 24px; transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out); }
  .gw.is-open .gw__panel { opacity: 1; }
}
.gw__head { display: flex; align-items: center; justify-content: space-between; }
.gw__brand { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.gw__lock { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #121214; color: var(--accent); }
.gw .icon-btn { background: #f0f0f2; color: #121214; }
.gw__demo { margin-top: 12px; font-size: 12.5px; color: #8a4b00; background: #fff4e5; border-radius: 10px; padding: 8px 12px; }
.gw__amount { display: grid; margin: 18px 0 16px; }
.gw__amount span { font-size: 13px; color: #6b6b72; }
.gw__amount strong { font: 700 32px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gw__amount small { font-size: 12.5px; color: #6b6b72; margin-top: 2px; }
.gw__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.gw__tab {
  display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: #4a4a50;
  box-shadow: inset 0 0 0 1px #e2e2e6;
  transition: box-shadow 200ms ease, color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.gw__tab svg { width: 22px; height: 22px; }
.gw__tab:active { transform: scale(0.97); }
.gw__tab[aria-selected="true"] { color: #121214; background: #fff6ef; box-shadow: inset 0 0 0 1.5px var(--accent); }
.gw__form { display: grid; gap: 12px; }
.gw .fld label { color: #5a5a60; }
.gw .fld input, .gw .fld select { background-color: #f4f4f6; color: #121214; box-shadow: inset 0 0 0 1px #e2e2e6; }
.gw .fld input::placeholder { color: #a0a0a6; }
.gw .fld input:focus, .gw .fld select:focus { box-shadow: inset 0 0 0 1.5px var(--accent); background-color: #fff; }
.gw .fld__err { color: #c2410c; }
.gw .fld.is-invalid input, .gw .fld.is-invalid select { box-shadow: inset 0 0 0 1.5px #ea580c; }
.gw__hint { font-size: 13.5px; color: #6b6b72; }
.gw__pay { margin-top: 6px; }
.gw__card {
  position: relative; aspect-ratio: 1.586; border-radius: 16px; padding: 18px 20px;
  display: grid; align-content: space-between;
  background: linear-gradient(135deg, #1d1d20 0%, #2c2c31 55%, #3b2416 100%);
  color: #fff; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5);
  overflow: hidden; margin-bottom: 4px;
}
.gw__card::after { content: ""; position: absolute; right: -30%; top: -40%; width: 80%; height: 120%; background: radial-gradient(closest-side, rgba(255, 92, 0, 0.45), transparent); }
.gw__chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #e9d29c, #b99654); }
.gw__num { font: 600 clamp(17px, 5vw, 21px)/1 var(--text); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.gw__meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); }
.gw__network { position: absolute; top: 18px; right: 20px; font: 800 italic 16px/1 var(--display); letter-spacing: 0.02em; z-index: 1; }
.gw__state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 0 8px; }
.gw__state strong { font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.gw__state p { color: #6b6b72; font-size: 14.5px; }
.gw__state .btn { margin-top: 12px; }
.gw .done__check { background: #e7f8ee; color: #14843f; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #eee; border-top-color: var(--accent); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .tia .tia__char, .js .tia .bubble, .js .tia .tia__who, .js .tia .tia__cta { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tia.is-idle .tia__char, .tia.is-idle .tia__frame--a, .tia.is-idle .tia__frame--b, .tia.is-idle .tia__floor, .tia.is-idle .bubble { animation: none; }
  .gw__panel { transition-duration: 1ms; }
}
