/* Site oficial da Ponte Cultural. Tokens espelham src/theme/colors.ts do app (identidade monocromatica). */
:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: #0d0f12;
  --surface-2: #14171c;
  --surface-3: #191d23;
  --border: #252a31;
  --text: #ffffff;
  --text-2: #a7abb3;
  --muted: #6f747c;
  --gray-1: #e5e5e5;
  --gray-2: #cacaca;
  --gray-3: #8c8c8c;
  /* Tela de entrada do app (papel cinza) */
  --paper: #d4d4d4;
  --paper-ink: #252525;
  --paper-button: #fafaf7;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 50; padding: 10px 18px; background: var(--text); color: var(--bg); border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 6, 8, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand span { font-weight: 700; font-size: 21px; letter-spacing: -.045em; line-height: 1; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: var(--text); }

/* ---------- Botoes (mesmo formato pilula do app) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.pill:active { transform: scale(.975); }
.pill-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.pill-block { width: 100%; }
.pill-light { background: var(--text); color: #161616; }
.pill-light:hover { background: var(--gray-1); }
.pill-outline { background: transparent; color: var(--text); border-color: var(--border); }
.pill-outline:hover { border-color: var(--gray-3); background: var(--surface); }
.pill-paper { background: var(--paper-button); color: #161616; font-weight: 600; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); }
.pill[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.play-glyph { width: 16px; height: 16px; fill: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.eyebrow { color: var(--text-2); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 64px 88px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 82px); line-height: 1.04; letter-spacing: -.035em;
  margin: 26px 0 24px;
}
.lead { color: var(--text-2); font-size: 19px; max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.spots { margin-top: 36px; max-width: 360px; }
.spots-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.spots-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gray-3), var(--text)); transition: width 1.2s var(--ease); }
.spots p { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.spots strong { color: var(--text); }

.hero-phones { position: relative; height: 600px; }
.phone {
  margin: 0; border-radius: 36px; padding: 8px;
  background: #0b0c0f; border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.hero-phones .phone { position: absolute; width: 290px; }
.phone-front { left: 4%; top: 30px; z-index: 2; }
.phone-back { right: 2%; top: 0; transform: rotate(5deg); opacity: .55; }

/* ---------- Faixa de estilos ---------- */
.marquee { border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.marquee li { white-space: nowrap; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secoes ---------- */
.section { padding-block: 104px; }
.section-head { max-width: 560px; }
.section h2, .paper h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.03em;
}
.section-head > p:last-child:not(.eyebrow) { color: var(--text-2); font-size: 18px; margin-top: 20px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px 28px; transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: #3a404a; transform: translateY(-3px); }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 22px; }
.icon svg, .done-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.note { margin-top: 40px; padding: 18px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }

/* ---------- Galeria ---------- */
.gallery-section { padding-top: 0; }
.gallery {
  display: flex; gap: 20px; margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, (100% - 1160px) / 2) 24px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .phone { flex: 0 0 250px; scroll-snap-align: center; }
.gallery figcaption { text-align: center; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 14px 0 6px; }

/* ---------- Papel (linguagem da tela de entrada) ---------- */
.paper {
  color: var(--paper-ink);
  background:
    linear-gradient(90deg, rgba(212, 212, 212, .94) 0%, rgba(212, 212, 212, .82) 45%, rgba(212, 212, 212, .35) 100%),
    var(--paper) url('assets/cultura.webp') left center / cover;
}
.paper-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-block: 104px; }
.paper .eyebrow { color: #4b4b4b; }
.paper-copy { font-size: 18px; max-width: 460px; }
.paper-copy p { margin-bottom: 18px; color: #333; }
.paper-copy .pill { margin-top: 10px; }

/* ---------- Testadores ---------- */
.tester { display: grid; grid-template-columns: 1fr 460px; gap: 64px; align-items: start; }
.tester-copy > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 520px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 18px; padding: 16px 0; border-top: 1px solid var(--border); }
.steps li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.steps p { color: var(--text-2); font-size: 15px; }

.form-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 32px 28px; }
.form-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field em { color: var(--muted); font-style: normal; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field input {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  font: 400 16px var(--sans); transition: border-color .2s, background-color .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--gray-3); background: var(--surface-3); }
.field input[aria-invalid="true"] { border-color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--gray-3); border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check input::after { content: ''; width: 10px; height: 6px; border: solid #161616; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { opacity: 1; }
.check input[aria-invalid="true"] { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.check a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: #303030; color: var(--text); font-size: 14px; }
#tester-form .pill { margin-top: 20px; }
#tester-form .pill[disabled] { opacity: .6; cursor: progress; }
.form-done { text-align: center; padding: 12px 0; outline: none; }
.done-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); margin-bottom: 18px; }
.done-icon svg { width: 30px; height: 30px; stroke-width: 2.2; }
.form-done p { color: var(--text-2); margin: 0 0 24px; }

/* ---------- Baixar ---------- */
.download { padding-top: 0; }
.download-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 32px; border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 0% 0%, var(--surface-3) 0%, var(--surface) 55%, var(--bg) 100%);
}
.download-icon { width: 220px; height: auto; }
.download-copy > p:not(.eyebrow) { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 520px; }

/* ---------- Contato / rodape ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-top: 0; }
.contact-copy p { color: var(--text-2); font-size: 18px; margin-bottom: 14px; }
.contact-email { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-inner nav a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner p { flex-basis: 100%; color: var(--muted); font-size: 13px; }

/* ---------- Entrada suave (leve: so opacity/transform) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-inner .pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 64px; }
  .hero-phones { height: 520px; max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-phones .phone { width: 250px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tester { grid-template-columns: 1fr; gap: 40px; }
  .form-card { position: static; }
  .paper-inner, .contact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .brand img { width: 34px; }
  .brand span { font-size: 19px; }
  .lead { font-size: 17px; }
  .hero-actions .pill { flex: 1 1 100%; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 210px; border-radius: 30px; padding: 6px; }
  .hero-phones .phone img { border-radius: 24px; }
  .phone-front { left: 0; }
  .phone-back { right: 0; }
  .section { padding-block: 72px; }
  .features { grid-template-columns: 1fr; margin-top: 36px; }
  .gallery .phone { flex-basis: 220px; }
  .paper-inner { padding-block: 72px; }
  .paper { background: linear-gradient(rgba(212, 212, 212, .9), rgba(212, 212, 212, .86)), var(--paper) url('assets/cultura.webp') 30% center / cover; }
  .form-card { padding: 26px 20px; border-radius: 20px; }
  .download-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; border-radius: 24px; }
  .download-icon { width: 96px; }
  .footer-inner nav { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .pill { transition: none; }
}
