/* Safe Studio — base: reset, tipografia, layout, botões, campos, chips, utilidades. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font: 400 var(--fs-16)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Textura: ruído fixo muito sutil */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: var(--lh-head); letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bone); color: var(--ink); border-radius: var(--r-1); transition: top var(--dur-1); }
.skip-link:focus { top: 12px; }

/* Layout */
.wrap { width: 100%; max-width: calc(var(--max) + var(--page-pad) * 2); margin-inline: auto; padding-inline: var(--page-pad); position: relative; z-index: 2; }
.section { padding-block: var(--s-9); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .section { padding-block: var(--s-8); } }
main { position: relative; z-index: 2; }

.sec-head { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: end; margin-bottom: var(--s-7); }
.sec-head__title { font-size: var(--fs-display-s); line-height: var(--lh-tight); max-width: 16ch; }
.sec-head__lede { color: var(--ash); max-width: 46ch; }
.sec-head__aside { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1fr auto; }
  .sec-head__lede { grid-column: 1; }
  .sec-head__aside { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
}

.lede { font-size: var(--fs-20); color: var(--ash); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--ash); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }

/* Botões */
.btn {
  --btn-bg: transparent; --btn-fg: var(--bone); --btn-bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 0 0 1px var(--btn-bd);
  font-weight: 500; font-size: var(--fs-16); white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out), color var(--dur-1), transform var(--dur-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent; }
.btn--primary:hover { --btn-bg: var(--accent-hi); }
/* Luz interna que acompanha o cursor (ver ss-motion.js: data-light) */
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-2);
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 60%); }
.btn--primary:hover::after { opacity: 1; }
.btn--ghost:hover { --btn-bd: var(--bone); }
.btn--light { --btn-bg: var(--bone); --btn-fg: var(--ink); --btn-bd: transparent; }
.btn--light:hover { --btn-bg: #fff; }
.btn--quiet { padding: 0 4px; min-height: 44px; box-shadow: none; color: var(--ash); }
.btn--quiet:hover { color: var(--bone); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ss-spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__spin { display: inline-block; }
.btn.is-loading .btn__label, .btn.is-loading svg { opacity: .55; }
.btn.is-done { --btn-bg: var(--graphite-3); --btn-fg: var(--bone); }
@keyframes ss-spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--bone); position: relative; transition: background-color var(--dur-1); }
.icon-btn:hover { background: var(--graphite-2); }
.icon-btn svg { width: 20px; height: 20px; }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
.link-u:hover { background-size: 100% 1px; }

/* Campos */
.field { width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--r-1); background: var(--graphite); color: var(--bone); border: 1px solid var(--line-2); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.field::placeholder { color: var(--ash-2); }
.field:hover { border-color: rgba(238,232,223,.28); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--ring); }
select.field { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239A968F' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.label { display: block; font-size: var(--fs-14); color: var(--ash); margin-bottom: var(--s-2); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-1); font-size: var(--fs-12); font-weight: 500; color: var(--bone); background: rgba(238,232,223,.06); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip--fw { font-family: var(--font-mono); letter-spacing: .01em; }
.chip--new { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.chip--sale { color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent-line); background: var(--accent-soft); }
.chip--demo { color: var(--warn); box-shadow: inset 0 0 0 1px rgba(217,164,65,.45); background: rgba(217,164,65,.08); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Preço */
.price { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price__old { color: var(--ash-2); text-decoration: line-through; font-weight: 400; font-size: .8em; margin-right: 6px; }
.price--sale .price__now { color: var(--accent-hi); }

/* Revelação por scroll (ativada por ss-motion.js; sem JS o conteúdo fica visível) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.js .split-line > span { display: block; transform: translateY(105%); transition: transform var(--dur-3) var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .is-in .split-line > span, .js .split-line.is-in > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .split-line > span { transform: none; }
}

/* Faixa "dados de demonstração" — só aparece no preview local */
.demo-flag { position: fixed; right: 12px; bottom: 12px; z-index: var(--z-toast); display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--r-1); background: #2A2416; color: #F0D9A8; font-size: var(--fs-12); box-shadow: var(--shadow-pop); max-width: calc(100vw - 24px); }
.demo-flag button { text-decoration: underline; }

/* Notificações */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-toast); display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-2); background: var(--graphite-2); box-shadow: var(--shadow-lift); font-size: var(--fs-14); animation: ss-toast-in var(--dur-2) var(--ease-out); }
.toast::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--ok); }
.toast--error::before { background: var(--accent-hi); }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all var(--dur-2) var(--ease-out); }
/* Toasts ficam do lado oposto ao carrinho (desktop) e no topo no mobile, onde o carrinho sobe da base */
@media (max-width: 599px) { .toasts { top: 12px; bottom: auto; left: 16px; right: 16px; width: auto; } }
@keyframes ss-toast-in { from { opacity: 0; transform: translateY(12px); } }

/* Estados vazios e erros */
.empty { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-8) var(--s-6); border: 1px dashed var(--line-2); border-radius: var(--r-3); }
.empty h3 { font-size: var(--fs-25); }
.empty p { color: var(--ash); max-width: 48ch; }
.alert { padding: 14px 16px; border-radius: var(--r-2); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ring); font-size: var(--fs-14); }
.alert--info { background: rgba(238,232,223,.05); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Esqueleto de carregamento */
.skel { background: linear-gradient(90deg, var(--graphite) 0%, var(--graphite-2) 50%, var(--graphite) 100%) 0 0 / 200% 100%; animation: ss-skel 1.4s linear infinite; border-radius: var(--r-2); }
@keyframes ss-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Mídia com proporção reservada (evita CLS) */
.media { position: relative; overflow: hidden; background: var(--graphite); }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1 { aspect-ratio: 1; }

/* Conteúdo rico vindo da Tebex (descrições, páginas CMS) */
.prose { max-width: 70ch; color: #D9D3CA; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-31); margin-top: 1.6em; color: var(--bone); }
.prose h3 { font-size: var(--fs-20); margin-top: 1.4em; color: var(--bone); }
.prose a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { padding-left: 20px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--accent); }
.prose ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 8px; }
.prose code { font-family: var(--font-mono); font-size: .9em; padding: 2px 6px; border-radius: var(--r-1); background: var(--graphite-2); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--r-2); background: var(--graphite); border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; }
.prose img { border-radius: var(--r-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Variações monocromáticas */
.btn--dark { --btn-bg: var(--paper-ink); --btn-fg: var(--snow-white); --btn-bd: transparent; }
.btn--dark:hover { --btn-bg: #000; }
.btn--tall { min-height: 56px; border-radius: var(--r-2); font-weight: 600; }
.btn--light .btn__spin, .btn--primary .btn__spin { border-color: var(--accent-ink); border-right-color: transparent; }
.kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: var(--r-1); font-family: var(--font-mono); font-size: 11px; color: var(--ash); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip--new { letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.toast--error::before { background: var(--error); }
.alert { background: rgba(224,122,122,.08); box-shadow: inset 0 0 0 1px rgba(224,122,122,.35); }

/* Fonte de títulos (Teko 600): peso real da fonte, sem negrito sintético */
h1, h2, h3,
.frontier__title, .finale__title, .sec-head__title, .cat-head__title, .buy__title, .psec__title,
.pcard__name, .scene__name, .why__item h3, .theater__product, .explorer__name, .cine__name, .prow__name,
.coupon__title, .flow__title, .drawer__head h2, .buybar__info strong, .nav__brand span {
  font-family: var(--font-title); font-weight: 600; font-synthesis: none; font-variation-settings: normal; letter-spacing: .01em; line-height: .95;
}
.frontier__title, .finale__title { line-height: .92; letter-spacing: .005em; }
.pcard__name, .scene__name, .buybar__info strong { letter-spacing: .02em; }
.nav__brand span { font-size: 1.35rem; letter-spacing: .03em; text-transform: uppercase; }
/* Acentos (Ó, Ã) não podem ser cortados pela máscara de revelação */
.js .split-line { padding-top: .12em; margin-top: -.12em; }
.frontier__title .split-line { white-space: nowrap; }
@media (max-width: 420px) { .frontier__title .split-line { white-space: normal; } }

/* Teko: condensada, com respiro vertical próprio; tamanhos afinados */
.sec-head__title, .cat-head__title { font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem); letter-spacing: .005em; padding-top: .08em; }
.pcard__name { font-size: 1.6rem; line-height: 1; letter-spacing: .01em; }
.scene__name { font-size: 2.3rem; letter-spacing: .01em; }
.nav__brand span { font-size: 1.6rem; letter-spacing: .03em; line-height: 1; padding-top: .12em; }
.buy__title { font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4rem); letter-spacing: .005em; }
.why__item h3 { font-size: 1.7rem; }
.psec__title { font-size: 2.4rem; }
