/* Homepage do Trabalhei. Cores, fonte e raios seguem o tema do app
   (freelanceflow/lib/core/theme/app_colors.dart). O aparelho em destaque muda
   com a tela: html[data-mode="desk"] (larga e deitada) ou "phone". */

:root {
  --primary: #19e6a7;
  --primary-light: #4ef3c1;
  --primary-soft: rgba(25, 230, 167, 0.12);
  --on-primary: #081a2f;
  --bg: #081a2f;
  --surface: #102743;
  --card: #132b47;
  --border: #223c58;
  --border-strong: #2c4a6b;
  --text: #ffffff;
  --text-2: #b7c3d0;
  --text-3: #8696a5;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-lg: 22px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.97rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-light); }
.btn-outline { border-color: rgba(25, 230, 167, 0.45); color: var(--primary-light); }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary); }
.btn-quiet { border-color: var(--border-strong); color: var(--text); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.05); border-color: #3a5a7e; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 26, 47, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(8, 26, 47, 0.9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background-color 0.2s; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Aparelhos ---------- */
.phone {
  position: relative; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #1d3756, #0b1d33 60%);
  box-shadow: inset 0 0 0 1px #2c4a6b, 0 40px 70px -35px rgba(0, 0, 0, 0.85);
}
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; background: var(--bg); }

.laptop { position: relative; container-type: inline-size; }
.laptop-lid {
  position: relative; padding: 2.4% 2.4% 3%;
  border-radius: 2cqw 2cqw 0.6cqw 0.6cqw;
  background: #0c1828;
  box-shadow: inset 0 0 0 1px #2c4a6b, 0 40px 70px -40px rgba(0, 0, 0, 0.9);
}
.laptop-lid::before {
  content: ''; position: absolute; top: 1cqw; left: 50%; width: 0.7cqw; height: 0.7cqw;
  border-radius: 50%; background: #233d5c; transform: translateX(-50%);
}
.laptop-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 0.5cqw; overflow: hidden; background: var(--bg); }
.laptop-base {
  position: relative; height: 2.4cqw; margin: 0 -6%;
  background: linear-gradient(#2c4769, #182a40 55%, #0f1c2d);
  border-radius: 0 0 2cqw 2cqw / 0 0 2.4cqw 2.4cqw;
  box-shadow: 0 22px 30px -20px rgba(0, 0, 0, 0.85);
}
.laptop-base::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 15%; height: 40%;
  transform: translateX(-50%); background: #0f1c2d; border-radius: 0 0 1cqw 1cqw;
}
.phone-screen > img,
.laptop-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Abertura ---------- */
.hero { position: relative; padding: clamp(24px, 5vw, 64px) 0 20px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; min-height: min(600px, calc(100svh - var(--header-h) - 110px)); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; text-wrap: balance; }
.lead { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.14rem); max-width: 540px; margin-bottom: 30px; }
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.store-label { color: var(--text-3); font-size: 0.88rem; font-weight: 600; margin-right: 4px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border); color: var(--text-2);
  font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.store-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }

.hero-stage { position: relative; height: clamp(420px, 44vw, 580px); perspective: 1600px; }
.stage-inner {
  --rx: 0deg; --ry: 0deg;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.hero-laptop, .hero-phone { position: absolute; }
:root[data-mode='desk'] .hero-laptop { left: 0; top: 50%; width: 90%; z-index: 2; transform: translateY(-46%) translateZ(40px); }
:root[data-mode='desk'] .hero-phone { right: 0; top: 0; width: 27%; z-index: 1; transform: translateZ(-90px); }
:root[data-mode='phone'] .hero-stage { --pw: min(290px, 58vw); height: calc(var(--pw) * 2.11 + 10px); }
:root[data-mode='phone'] .hero-phone { left: 4%; top: 0; width: var(--pw); z-index: 2; transform: translateZ(40px); }
:root[data-mode='phone'] .hero-laptop { right: -12%; top: 9%; width: 78%; z-index: 1; transform: translateZ(-90px); }

/* Camadas recortadas do mesmo print: mesma aparência, montadas em sequência. */
.layer {
  position: absolute; left: 0; right: 0;
  top: calc(var(--t) * 1%); height: calc(var(--h) * 1%);
  background: var(--img) no-repeat;
  background-size: 100% calc(100% * 100 / var(--h));
  background-position: 0 calc(var(--t) / (100 - var(--h)) * 100%);
}
.spotlight {
  position: absolute; z-index: 2; opacity: 0;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 999px; border: 2px solid var(--warning); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}
.callout {
  position: absolute; z-index: 3; opacity: 0;
  padding: 10px 14px; border-radius: 12px; width: 230px;
  background: #13294a; border: 1px solid rgba(245, 158, 11, 0.55);
  color: var(--text-2); font-size: 0.82rem; line-height: 1.4;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}
.callout strong { color: var(--warning); display: block; font-size: 0.9rem; }
.callout::before { content: ''; position: absolute; background: var(--warning); }
/* Notebook: o aviso fica acima da tela e uma linha desce até o selo. */
.hero-laptop .callout { left: 10cqw; bottom: calc(100% + 18px); }
.hero-laptop .callout::before { left: 10.3cqw; top: 100%; width: 2px; height: calc(18px + 26cqw); opacity: 0.8; }
/* Celular: o aviso fica logo abaixo do selo, com a seta apontando para ele. */
.hero-phone .callout { left: 8%; right: 8%; width: auto; top: 44%; }
.hero-phone .callout::before { left: 16%; bottom: 100%; width: 12px; height: 7px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
:root[data-mode='desk'] .hero-phone .callout,
:root[data-mode='phone'] .hero-laptop .callout { display: none; }

/* Sequência: o aparelho da frente se monta em camadas; o de trás entra depois. */
.js .hero:not(.is-playing):not(.is-done) :is(.hero-laptop, .hero-phone) { opacity: 0; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) { animation: device-in 0.8s var(--ease-out) both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-phone, :root[data-mode='phone'] .hero-laptop) { animation: back-in 1.1s var(--ease-out) 2.3s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .layer-base { animation: fade-in 0.6s ease 1.75s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .l1 { animation: drop-in 0.7s var(--ease-out) 0.3s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .l2 { animation: slide-in 0.7s var(--ease-out) 0.5s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .l3 { animation: rise-in 0.95s var(--ease-out) 0.7s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .l4 { animation: lift-in 0.6s var(--ease-out) 1.5s both; }
.hero.is-playing :is(:root[data-mode='desk'] .hero-laptop, :root[data-mode='phone'] .hero-phone) .spotlight { animation: spotlight 1.8s var(--ease-in-out) 1.35s both; }
.hero.is-playing .callout { animation: callout 2.1s var(--ease-out) 1.4s both; }

@keyframes device-in { from { opacity: 0; translate: 0 22px; scale: 0.97; } }
@keyframes back-in { from { opacity: 0; translate: 48px 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -35%; } }
@keyframes slide-in { from { opacity: 0; translate: 18% 0; } }
@keyframes rise-in { from { opacity: 0; translate: 0 8%; scale: 1.05; } }
@keyframes lift-in { from { opacity: 0; translate: 0 100%; } }
@keyframes spotlight {
  0% { opacity: 0; scale: 1.5; }
  22% { opacity: 1; scale: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes callout {
  0% { opacity: 0; translate: 0 8px; }
  15%, 78% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; }
}

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-3);
  font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: opacity 0.4s, color 0.2s;
}
.scroll-hint:hover { color: var(--text-2); }
.scroll-hint svg { animation: nudge 1.8s ease-in-out infinite; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes nudge { 50% { translate: 0 4px; } }
.demo-disclaimer { color: var(--text-3); font-size: 0.78rem; text-align: right; }

/* ---------- Entrada das seções ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.7s ease, translate 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Seções ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.section-sub { color: var(--text-2); margin-top: 12px; font-size: 1.04rem; }

.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.audience-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.audience-card h3 { font-size: 1.3rem; margin: 18px 0; }
.audience-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2319E6A7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.callout-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.95rem;
}
.callout-note svg { flex: none; color: #38bdf8; margin-top: 3px; }

/* ---------- Cenas presas à rolagem ---------- */
.scene-track { position: relative; }
.scene-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.scene-progress { height: 3px; border-radius: 3px; background: var(--border); margin-top: 22px; overflow: hidden; }
.scene-progress span { display: block; height: 100%; background: var(--primary); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scene-hint { margin-top: 10px; color: var(--text-3); font-size: 0.82rem; font-weight: 600; transition: opacity 0.4s; }
.scene-hint::after { content: ' ↓'; display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
.scene-hint.is-hidden { opacity: 0; }

/* ---------- Demonstração ---------- */
.demo { padding-top: clamp(72px, 10vw, 112px); }
.demo-head .section-head { margin-bottom: 8px; }
.demo .scene-track { height: 380vh; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
:root[data-mode='phone'] .demo-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
.demo-device { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-laptop { width: min(100%, calc((100svh - var(--header-h) - 150px) / 0.66)); }
.demo-phone { width: calc(min(66svh, 640px) * 0.462); }
:root[data-mode='desk'] .demo-phone,
:root[data-mode='phone'] .demo-laptop { display: none; }
.demo-screen { opacity: 0; transform: translateY(3%) scale(0.99); transition: opacity 0.55s ease, transform 0.75s var(--ease-out); }
.demo-screen.is-active { opacity: 1; transform: none; }
.demo-screen.is-leaving { opacity: 0; transform: translateY(-3%) scale(0.99); }
.focus-ring {
  --x: 0; --y: 0; --w: 0; --h: 0;
  position: absolute; z-index: 2; pointer-events: none;
  left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 12px; border: 2px solid var(--primary);
  box-shadow: 0 0 0 9999px rgba(8, 26, 47, 0.55);
  transition: left 0.75s var(--ease-in-out), top 0.75s var(--ease-in-out), width 0.75s var(--ease-in-out), height 0.75s var(--ease-in-out);
}
.demo-laptop .focus-ring { border-radius: 8px; }
.focus-note {
  min-height: 42px; max-width: 100%; padding: 9px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.3s;
}
.focus-note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 10px; flex: none; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step-button {
  display: flex; gap: 16px; width: 100%; text-align: left; padding: 16px 18px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer;
  opacity: 0.5; transition: opacity 0.4s, background-color 0.4s, border-color 0.4s;
}
.step-button:hover { opacity: 0.8; }
.demo-step.is-active .step-button { opacity: 1; background: var(--card); border-color: var(--border); }
.step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2); font-weight: 700; font-size: 0.9rem;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.demo-step.is-active .step-num { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.step-text { display: grid; gap: 4px; }
.step-text strong { font-size: 1.06rem; }
.step-text span { color: var(--text-2); font-size: 0.94rem; }

/* ---------- Transformação entre plataformas ---------- */
.platforms .scene-track { height: 360vh; }
.platforms-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.platforms-copy .section-head { margin-bottom: 26px; }
.mobile-head { display: none; }
.platform-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); margin-bottom: 22px; }
.platform-tab {
  min-height: 40px; padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: 0.92rem;
  transition: background-color 0.35s, color 0.35s;
}
.platform-tab.is-active { background: var(--primary); color: var(--on-primary); }
.platform-panels { position: relative; min-height: 180px; }
.platform-panel h3 { font-size: 1.25rem; margin-bottom: 10px; }
.platform-panel p { color: var(--text-2); margin-bottom: 20px; max-width: 420px; }
.platform-panel.is-active { animation: panel-in 0.5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }

.morph-stage { position: relative; height: min(70svh, 620px); display: grid; place-items: center; }
.morph-device {
  --w: 300px; --h: 640px; --r: 46px; --bezel: 10px; --chrome: 0px;
  --win: 0; --web: 0; --o-phone: 1; --o-win: 0; --o-web: 0;
  position: relative; width: var(--w); height: var(--h); border-radius: var(--r); padding: var(--bezel);
  background: linear-gradient(160deg, #1d3756, #0b1d33 60%);
  box-shadow: inset 0 0 0 1px #2c4a6b, 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.morph-chrome { position: relative; height: var(--chrome); overflow: hidden; border-radius: calc(var(--r) - var(--bezel)) calc(var(--r) - var(--bezel)) 0 0; background: #0d2139; }
.chrome-win, .chrome-web { position: absolute; inset: 0 0 auto 0; }
.chrome-win { height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 0.75rem; color: var(--text-2); opacity: var(--win); }
.win-controls { margin-left: auto; display: flex; height: 100%; }
.win-controls i { width: 44px; height: 100%; position: relative; }
.win-controls i::before, .win-controls i::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--text-2); }
.win-controls .min::before { width: 10px; height: 1px; transform: translate(-50%, -50%); }
.win-controls .max::before { width: 9px; height: 9px; background: none; border: 1px solid var(--text-2); transform: translate(-50%, -50%); }
.win-controls .close::before, .win-controls .close::after { width: 12px; height: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.win-controls .close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.chrome-web { opacity: var(--web); }
.web-tabs { height: 34px; display: flex; align-items: flex-end; padding: 0 10px; background: #0a1a2e; }
.web-tab { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: 10px 10px 0 0; background: #0d2139; font-size: 0.72rem; color: var(--text-2); }
.web-tab img { border-radius: 4px; }
.web-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a4666; }
.address {
  display: inline-flex; align-items: center; gap: 6px; flex: 1; max-width: 480px; height: 26px;
  padding: 0 10px; border-radius: 7px; background: var(--bg); color: var(--text-2); font-size: 0.72rem; font-weight: 500;
}
.morph-screens {
  position: absolute; left: var(--bezel); right: var(--bezel); bottom: var(--bezel);
  top: calc(var(--bezel) + var(--chrome)); overflow: hidden; background: var(--bg);
  border-radius: 0 0 calc(var(--r) - var(--bezel)) calc(var(--r) - var(--bezel));
}
.morph-device[data-shape='phone'] .morph-screens { border-radius: calc(var(--r) - var(--bezel)); }
.morph-screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.m-phone { opacity: var(--o-phone); }
.m-win { opacity: var(--o-win); }
.m-web { opacity: var(--o-web); }

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.download-card { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.download-head { display: flex; align-items: center; gap: 14px; }
.download-head h3 { font-size: 1.25rem; }
.platform-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.specs { margin: 0; display: grid; gap: 10px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(34, 60, 88, 0.7); font-size: 0.92rem; }
.specs dt { color: var(--text-3); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.download-help { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.download-actions { display: grid; gap: 10px; }

/* ---------- Perguntas frequentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- Chamada final e rodapé ---------- */
.final-cta { padding: 0 0 clamp(72px, 10vw, 112px); }
.final-inner { text-align: center; padding: clamp(40px, 6vw, 60px) 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.final-inner h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 800; margin-bottom: 10px; text-wrap: balance; }
.final-inner p { color: var(--text-2); margin-bottom: 26px; }
.final-inner .cta-row { justify-content: center; }

.site-footer { border-top: 1px solid var(--border); background: #071628; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--text-3); margin-top: 12px; font-size: 0.9rem; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 6px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; font-size: 0.94rem; width: fit-content; }
.site-footer nav a:hover { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(34, 60, 88, 0.6); color: var(--text-3); font-size: 0.85rem; }
.footer-bottom a { color: var(--text-2); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--primary-light); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: 0.88rem; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid .download-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 20px;
    background: rgba(8, 26, 47, 0.97); border-bottom: 1px solid var(--border); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 36px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .store-row { justify-content: center; }
  .hero-stage { width: min(100%, 560px); margin-inline: auto; }
  .hero-foot { flex-direction: column; }
  .demo-disclaimer { text-align: center; }

  .audience-grid { grid-template-columns: minmax(0, 1fr); }

  .demo .scene-track { height: 360vh; }
  .demo-grid, :root[data-mode='phone'] .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-phone { width: calc(min(50svh, 480px) * 0.462); }
  .demo-device { gap: 10px; }
  .focus-note { font-size: 0.8rem; min-height: 38px; padding: 8px 14px; }
  .demo-steps { gap: 0; }
  .demo-step:not(.is-active) { display: none; }
  .step-button { padding: 12px 14px; }
  .scene-progress { margin-top: 12px; }
  .scene-hint { display: none; }

  .platforms .scene-track { height: 320vh; }
  .platforms-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .platforms-copy { order: 2; text-align: center; }
  .desk-head { display: none; }
  .mobile-head { display: block; padding-top: 72px; }
  .mobile-head .section-head { margin: 0 auto 8px; text-align: center; }
  .platform-panel p { margin-inline: auto; }
  .morph-stage { height: min(50svh, 500px); }
  .platform-panels { min-height: 170px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .container, .container.narrow { width: calc(100% - 32px); }
  .header-actions .btn-primary { padding: 0 12px; font-size: 0.84rem; }
  .brand span { font-size: 1.05rem; }
  .hero-actions .btn, .cta-row .btn { flex: 1 1 100%; }
  .store-row { margin-top: 20px; }
  .store-label { flex-basis: 100%; text-align: center; margin: 0; }
  .store-btn { flex: 1 1 0; justify-content: center; }
  .audience-card { padding: 22px; }
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .download-card { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Movimento reduzido: nada animado nem fixado ---------- */
html.reduced .scene-track { height: auto !important; }
html.reduced .scene-sticky { position: static; height: auto; padding: 40px 0; }
html.reduced .demo-step:not(.is-active) { display: list-item; }
html.reduced .scene-hint, html.reduced .scroll-hint svg { display: none; }
html.reduced .stage-inner { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
