/* UP — Universe Path · página de marketing.
   Visual espelha o app: tokens de design/PALETA.md (UPDesignSystem/DSColor).
   Escuro = "noite" (padrão); claro = "papel de HQ" (segue o sistema). */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype"); }

:root {
  --background: #0B3350;
  --surface: #16202B;
  --surface-high: #1E2B3A;
  --text: #FFF9EB;
  --text-2: #B8B5B0;
  --accent: #FFCC00;       /* ouro como texto/ícone */
  --primary: #FFCC00;      /* ouro como preenchimento */
  --primary-pressed: #F5B700;
  --secondary: #1E90D6;
  --alert: #E63946;
  --ink: #0D0D0E;
  --on-image: #FFF9EB;
  --paper: #FFF9EB;        /* fundo do balão de fala */
  --dots: rgba(255, 204, 0, .16);
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --max: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #F6EAD0;
    --surface: #FFFAEB;
    --surface-high: #EFE0BC;
    --text: #1A1712;
    --text-2: #5A554D;
    --accent: #7A5500;
    --dots: rgba(26, 23, 18, .10);
    --paper: #FFFFFF;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); text-shadow: 3px 3px 0 var(--ink); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); text-shadow: 2px 2px 0 var(--ink); }
@media (prefers-color-scheme: light) { h1, h2 { text-shadow: none; } }
h3 { font-size: 1.25rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-2); max-width: 36ch; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 44px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-weight: 600; font-size: .95rem; }
.top nav a { color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.top nav a:hover { color: var(--accent); }
.lang { border: 2px solid var(--ink); background: var(--surface-high); padding: 4px 12px; border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 760px) { .top nav a:not(.lang) { display: none; } }

/* ---- comic bits ---- */
.sticker { display: inline-block; background: var(--primary); color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 8px 18px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2.5deg); margin-bottom: 22px; }
.also { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; padding: 0; list-style: none; }
.also li { background: var(--surface-high); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.band .also li { background: var(--background); }
.chip { display: inline-block; background: var(--secondary); color: var(--ink); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; padding: 2px 10px; border: 2px solid var(--ink); }
.halftone { background-image: radial-gradient(var(--dots) 1.6px, transparent 1.8px); background-size: 14px 14px; }
.card { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); margin: 0; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-high); border: 2px solid var(--ink); border-radius: 10px; margin-bottom: 16px; color: var(--accent); }
.ico svg { width: 24px; height: 24px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: var(--ink); font: 700 1rem "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: .03em; padding: 14px 24px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-pressed); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.ghost { background: var(--surface-high); color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; }
.btn small { font-weight: 600; opacity: .8; text-transform: none; letter-spacing: 0; }

/* ---- phone frame (prints reais do app) ---- */
.phone { position: relative; width: 100%; max-width: 290px; aspect-ratio: 1206 / 2622; border: 3px solid var(--ink); border-radius: 15% / 7%; background: #000; box-shadow: 7px 7px 0 var(--ink); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ---- hero ---- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .stack { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero .stack .phone { position: absolute; }
.hero .stack .back { transform: translate(-38%, 38px) rotate(-7deg); max-width: 250px; }
.hero .stack .front { transform: translate(24%, 0) rotate(3deg); z-index: 1; }
@media (min-width: 861px) and (max-width: 1100px) {
  .hero .stack .phone { max-width: 250px; }
  .hero .stack .back { transform: translate(-26%, 34px) rotate(-7deg); max-width: 210px; }
  .hero .stack .front { transform: translate(20%, 0) rotate(3deg); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stack { min-height: 520px; margin-top: 20px; }
}
@media (max-width: 520px) {
  .hero .stack { min-height: 500px; }
  .hero .stack .phone { max-width: 230px; }
  .hero .stack .back { transform: translate(-30%, 34px) rotate(-7deg); max-width: 200px; }
  .hero .stack .front { transform: translate(14%, 0) rotate(3deg); }
}

/* ---- sections ---- */
section { padding: 84px 0; }
.band { background: var(--surface); border-block: 3px solid var(--ink); }
.band .card { background: var(--background); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: 12px; }
.head { max-width: 760px; margin-bottom: 44px; }
.head p:not(.eyebrow) { color: var(--text-2); font-size: 1.15rem; margin-top: 16px; }

/* balão de fala de HQ com a pergunta que originou o app */
.balloon { position: relative; max-width: 820px; margin: 8px 0 76px; padding: 34px 40px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.balloon::before, .balloon::after { content: ""; position: absolute; left: 72px; width: 0; height: 0; border-style: solid; }
.balloon::before { bottom: -40px; border-width: 40px 0 0 40px; border-color: var(--ink) transparent transparent transparent; }
.balloon::after { bottom: -31px; left: 76px; border-width: 32px 0 0 32px; border-color: var(--paper) transparent transparent transparent; }
.balloon .question { font-weight: 700; font-size: clamp(1.55rem, 3.6vw, 2.6rem); line-height: 1.18; text-transform: none; text-shadow: none; letter-spacing: -.015em; margin: 0; }
.balloon mark { color: inherit; background: linear-gradient(transparent 52%, var(--primary) 52%, var(--primary) 86%, transparent 86%); padding: 0 .06em; margin: 0 -.06em; }
.balloon-by { margin: -52px 0 44px 132px; color: var(--text-2); font-weight: 600; }
@media (max-width: 760px) {
  .balloon { padding: 24px 22px; border-radius: 22px; margin-bottom: 64px; }
  .balloon::before { left: 40px; } .balloon::after { left: 44px; }
  .balloon-by { margin: -44px 0 36px 96px; }
}
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .three, .grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1050px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.steps { display: grid; gap: 96px; }
.step { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 520px); justify-content: center; gap: 64px; align-items: center; }
.step:nth-child(even) { grid-template-columns: minmax(0, 520px) minmax(0, 440px); }
.step .shot { justify-content: flex-start; }
.step:nth-child(even) .shot { order: -1; justify-content: flex-end; }
.step .n { font-size: 4.5rem; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 1.6rem; margin-bottom: 14px; }
.step p { color: var(--text-2); margin: 0; }
.shot { display: flex; justify-content: center; gap: 22px; }
.shot .phone { max-width: 250px; }
@media (max-width: 860px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .shot { order: 0; }
  .step .shot, .step:nth-child(even) .shot { justify-content: center; }
  .steps { gap: 72px; }
}

.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 8px max(20px, calc((100% - var(--max)) / 2)) 36px; scroll-padding-inline: max(20px, calc((100% - var(--max)) / 2)); scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 240px; scroll-snap-align: start; }
.gallery figcaption { margin-top: 18px; font-weight: 600; font-size: .95rem; color: var(--text-2); text-align: center; }
.gallery .phone { max-width: none; }

.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .universes { grid-template-columns: 1fr; } }
.universe { display: flex; gap: 18px; align-items: center; }
@media (max-width: 520px) { .universe { flex-direction: column; align-items: flex-start; } }
.universe .mark { flex: none; width: 84px; height: 54px; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }

/* ---- footer ---- */
footer { background: var(--surface); border-top: 3px solid var(--ink); padding: 56px 0 72px; font-size: .92rem; color: var(--text-2); }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { color: var(--text); font-size: 1rem; margin-bottom: 12px; }
footer p { margin-bottom: .9em; }
footer .foot-logo img { height: 40px; margin-bottom: 16px; }
footer .tmdb { display: inline-block; margin: 4px 0 14px; }
footer .tmdb img { height: 12px; width: auto; }

h2.eyebrow { text-shadow: none; line-height: 1.6; }
.gallery-band { padding-bottom: 40px; }

/* ---- páginas legais e suporte (privacidade, termos, suporte) ---- */
.doc-hero { padding: 64px 0 48px; border-bottom: 3px solid var(--ink); }
.doc-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 18px; }
.doc-hero .lede { max-width: 54ch; }
.doc-hero .meta { margin: 18px 0 0; font-size: .92rem; font-weight: 600; color: var(--text-2); }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; gap: 40px; } }
.toc { align-self: start; position: sticky; top: 92px; font-size: .92rem; }
@media (max-width: 960px) { .toc { position: static; } }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--accent); }
.toc .eyebrow { margin-bottom: 10px; }
@media (max-width: 960px) {
  .toc { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 20px; }
}
.prose { max-width: 72ch; min-width: 0; }
.prose section { padding: 0; }
.prose > section { scroll-margin-top: 92px; }.prose > section + section { margin-top: 52px; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); text-shadow: none; margin-bottom: 16px; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.tldr { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 52px; }
.tldr h2 { font-size: 1.1rem; margin-bottom: 14px; }
.tldr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tldr li { position: relative; padding-left: 30px; color: var(--text); }
.tldr li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--ink); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D0E' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.note { border-left: 4px solid var(--primary); background: var(--surface); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1em; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; background: var(--surface); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid var(--surface-high); color: var(--text-2); }
.prose th { color: var(--text); background: var(--surface-high); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); font-weight: 600; }
.faq details { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); margin-bottom: 16px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 8px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 52px; }
.contact-card p { margin: 0; max-width: 46ch; }
footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.doc-single { padding: 56px 0 96px; }
.doc-single .prose { max-width: 820px; }
