:root {
  --bg: #eceef1;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #4a4d55;
  --ink-3: #8a8e98;
  --line: #e1e4e9;
  --chip: #f1f2f5;
  --blue-1: #0b1f6b;
  --blue-2: #1d4ed8;
  --blue-3: #3b6cf6;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: 16px;
  --hero-inset: 4px;
  --max: 480px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 560px) { body { background: #0b0b0c; } }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 2px; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow-x: clip;
}
@media (min-width: 560px) {
  .page { margin: 24px auto; min-height: auto; border-radius: 32px; overflow: hidden; }
  /* no desktop o cartão da página já arredonda o topo; o header encosta nele */
  .page { --hero-inset: 0px; }
  .page .hero { border-radius: 0 0 var(--radius) var(--radius); }
}
.page[aria-busy="true"] { min-height: 100dvh; }

.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 14px; height: 14px; }
.logo { display: block; width: 92px; height: 15px; color: currentColor; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  margin: var(--hero-inset) var(--hero-inset) 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate; /* mantém o arredondado no Safari/iOS com blur e scroll */
}
.hero-top {
  position: absolute; z-index: 3; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.18));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.hero-logo { color: #fff; width: 104px; height: 17px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.pill-dark { background: var(--ink); color: #fff; }

.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
  aspect-ratio: 4 / 5;
}
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.slide > img, .slide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 22%, transparent 50%, rgba(0,0,0,.6) 100%);
}
.slide-link { position: absolute; inset: 0; z-index: 1; }
.slide-body {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 38px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 0 var(--gutter); text-align: center; pointer-events: none;
}
.slide-body > * { pointer-events: auto; }
.slide-title { font-size: clamp(30px, 9vw, 40px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(0,0,0,.3); }

.onscreen {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(30,30,32,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 14px; white-space: nowrap;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.onscreen.ready { opacity: 1; transform: none; }
.onscreen-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.6); }
.onscreen-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }

.countdown {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(20,20,22,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.countdown-label { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.countdown-time { display: flex; gap: 4px; }
.cd-unit {
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff;
}
.countdown[hidden], .cd-unit[hidden] { display: none; }
.cd-unit b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cd-unit small { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); }

.hero-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: none; color: #fff;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.45));
  transition: opacity .2s, transform .15s;
}
.hero-arrow .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.hero-prev { left: 4px; }
.hero-prev .ic { transform: scaleX(-1); }
.hero-next { right: 4px; }
.hero-arrow:hover { opacity: .8; }
.hero-arrow:active { transform: translateY(-50%) scale(.92); }

.hero-dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 2px;
}
.hero-dots button {
  width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero-dots button::before {
  content: ''; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.45); transition: width .25s, background .25s;
}
.hero-dots button[aria-selected="true"]::before { width: 20px; background: #fff; }

/* ---------- profile ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 20px var(--gutter) 4px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.profile-name { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.verified { width: 18px; height: 18px; flex: none; }
.profile-bio { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.bio-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- blocks ---------- */
.block { padding: 22px 0 0; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); margin-bottom: 12px; }
.block-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; padding: 0 var(--gutter); margin-bottom: 12px; }
.block-head .block-title { padding: 0; margin: 2px 0 0; }
.more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 14px; padding: 6px 0; }

.rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ---------- coupons ---------- */
.ticket {
  width: calc(100% - 44px);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(120% 90% at 85% 10%, var(--blue-3), transparent 60%), linear-gradient(135deg, var(--blue-1), var(--blue-2));
}
.ticket-dark { background: radial-gradient(90% 80% at 90% 100%, #1e5bff 0%, transparent 60%), #08090c; }
.rail-coupons > .ticket:only-child { width: 100%; }
.ticket .eyebrow { color: rgba(255,255,255,.75); margin-bottom: 6px; }
.ticket-value { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.ticket-value small { font-size: 18px; letter-spacing: 0; margin-left: 4px; }
.ticket-note { margin-top: 8px; font-size: 13px; opacity: .8; }
.ticket-code { margin-top: 6px; font-size: 12px; opacity: .85; }
.ticket-btn {
  align-self: stretch; margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border: 0; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 800 13px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.ticket > :nth-last-child(2) { margin-bottom: 18px; }

/* ---------- products ---------- */
.product { width: 168px; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 4 / 5; background: #f3f3f4; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.product-info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-title { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips span { padding: 3px 6px; border-radius: 5px; background: var(--chip); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; font-size: 15px; }
.price s { font-size: 12px; color: var(--ink-3); }
.price b { font-weight: 800; }

/* ---------- links ---------- */
.links { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 8px; }
.link {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 14px 10px 10px;
  background: var(--surface); border-radius: var(--radius-sm);
  transition: transform .15s ease;
}
.link:active { transform: scale(.98); }
.link-hl { background: var(--ink); color: #fff; }
.link-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--chip); flex: none; overflow: hidden; }
.link-hl .link-icon { background: rgba(255,255,255,.12); }
.link-icon img { width: 100%; height: 100%; object-fit: cover; }
.emoji { font-size: 20px; line-height: 1; }
.link-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.link-text b { font-weight: 700; font-size: 15px; }
.link-text small { color: var(--ink-3); font-size: 12.5px; }
.link-hl .link-text small { color: rgba(255,255,255,.6); }
.link-arrow { opacity: .45; }

/* ---------- size help ---------- */
.sizehelp {
  margin: 0 var(--gutter);
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--surface); border-radius: var(--radius);
}
.sizehelp-body { flex: 1; min-width: 0; }
.sizehelp h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sizehelp p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.sizes { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sizes a {
  min-width: 38px; height: 32px; padding: 0 8px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 700;
}
.sizes a:active, .sizes a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.wa-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; }
.wa-btn .ic { width: 22px; height: 22px; }

/* ---------- banner ---------- */
.banner { display: block; position: relative; margin: 0 var(--gutter); border-radius: var(--radius); overflow: hidden; }
.banner img { width: 100%; }
.banner-title { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 800; font-size: 20px; }

/* ---------- footer ---------- */
.footer {
  margin-top: 40px;
  padding: 36px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer-tagline { font-size: clamp(28px, 8.4vw, 36px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.footer-sub:first-child { margin-top: 0; }
.footer-sub { margin-top: 8px; font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -.01em; color: rgba(255,255,255,.6); }
.footer-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.footer-socials a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
  font-size: 13px; font-weight: 700; transition: background .2s;
}
.footer-socials a:hover, .footer-socials a:active { background: rgba(255,255,255,.14); }
.footer-socials .ic { width: 22px; height: 22px; }
.footer-mark { margin-top: 36px; }
.footer-logo { width: 100%; height: auto; aspect-ratio: 137 / 22; color: #fff; }
.footer-meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ---------- floating CTA ---------- */
.page:has(.footer) { padding-bottom: 0; }
.has-float-cta .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.float-cta {
  position: fixed; z-index: 9; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 800; white-space: nowrap;
  animation: float-in .4s .3s ease-out both;
}
.float-cta:active { transform: translateX(-50%) scale(.97); }
.float-cta-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); }
.float-cta { transition: background .25s, color .25s; }
.float-cta.on-dark { background: #fff; color: var(--ink); }
.float-cta.on-dark .float-cta-go { background: var(--ink); color: #fff; }
@media (max-width: 370px) { .float-cta { font-size: 13px; padding-left: 16px; gap: 8px; } }
@keyframes float-in { from { opacity: 0; transform: translate(-50%, 24px); } }
.has-float-cta ~ .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- toast / fallback ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fallback { display: grid; gap: 10px; padding: 40px var(--gutter); }
.fallback-logo { width: 120px; height: 20px; margin: 0 auto 16px; }
.fallback .link { justify-content: center; font-weight: 700; }
