/* Todas Por Uma — suporte.todasporuma.com
   Chrome da página, layout do tutorial e conteúdo de apoio.
   As telas do app ficam em phone.css. */

:root {
  --canvas: #FDF3EE;
  --surface: #FFFFFF;
  --ink: #1B1416;
  --ink-2: #6B5B57;
  --ink-3: #9C8880;
  --rule: #EADCD4;
  --coral: #FF5959;
  --coral-ink: #BE322D;
  --alert: #F44336;
  --go: #2E7D46;

  --display: 'Bricolage Grotesque', 'Roboto', sans-serif;
  --body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bar: 58px;
  --gutter: clamp(16px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  width: 100%;
  max-width: calc(720px + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Topo fixo ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar);
  z-index: 50;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .6s ease;
}
.topbar.is-stuck { border-bottom-color: var(--rule); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img { width: 24px; flex: none; }
.brand b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand span {
  font-size: 12px;
  color: var(--ink-2);
  border-left: 1px solid var(--rule);
  padding-left: 9px;
  white-space: nowrap;
  flex: none;
}

.wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
  flex: none;
}
.wa:hover { background: #E04A4A; transform: translateY(-1px); }
.wa svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.wa__label { display: inline; }

/* ---------- Cinema: vídeo NICE no topo ---------- */

.cinema {
  --cinema-bg: #050507;
  --cinema-panel: #16161c;
  --cinema-panel-2: #1e1e28;
  --cinema-text: #ffffff;
  --cinema-muted: #b4b0bc;
  --cinema-accent: #f472b6;
  --cinema-border: rgba(244, 114, 182, 0.22);

  position: relative;
  isolation: isolate;
  background: var(--cinema-bg);
  color: var(--cinema-text);
  padding: calc(var(--bar) + clamp(36px, 6vw, 72px)) 0 clamp(48px, 8vw, 88px);
  overflow: hidden;
}

.cinema__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 60% at 18% 45%, rgba(244, 114, 182, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 88% 20%, rgba(255, 89, 89, 0.1), transparent 65%);
}

.cinema__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.cinema__player { min-width: 0; }

.cinema__frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--cinema-border);
  box-shadow:
    0 0 0 1px rgba(244, 114, 182, 0.08),
    0 0 40px rgba(244, 114, 182, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.55);
  animation: cinema-glow 5.5s ease-in-out infinite;
}

.cinema__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cinema__copy { min-width: 0; }

.cinema__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--cinema-border);
  color: var(--cinema-accent);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cinema__copy h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  max-width: 16ch;
}

.cinema__cards {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.cinema__card {
  background: var(--cinema-panel);
  border: 1px solid var(--cinema-border);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--cinema-muted);
  font-size: .95rem;
  line-height: 1.45;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.cinema__card:hover {
  transform: translateY(-2px);
  background: var(--cinema-panel-2);
  border-color: rgba(244, 114, 182, 0.35);
}

.cinema__card strong {
  display: block;
  color: var(--cinema-text);
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cinema__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.cinema__cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}

.cinema__cta:hover {
  background: #E04A4A;
  transform: translateY(-1px);
}

.cinema__link {
  color: var(--cinema-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.cinema__link:hover {
  color: var(--cinema-text);
  border-bottom-color: var(--cinema-accent);
}

@keyframes cinema-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(244, 114, 182, 0.08),
      0 0 36px rgba(244, 114, 182, 0.18),
      0 24px 60px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(244, 114, 182, 0.16),
      0 0 56px rgba(244, 114, 182, 0.32),
      0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- Tour: palco fixo + passos ---------- */

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(28px, 5vw, 48px);
  min-width: 0;
}

.tour__stage {
  position: sticky;
  top: var(--bar);
  height: calc(100vh - var(--bar));
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}

.tour__steps { order: 1; }

/* ---------- Passos ---------- */

.step {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 0;
}

.step__num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--coral-ink);
  display: block;
  margin-bottom: 6px;
}

.step__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 18px;
}

.step h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  max-width: 17ch;
}

.step p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 14px;
}

.step strong { color: var(--ink); font-weight: 700; }

.tip {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  max-width: 46ch;
}
.tip svg { width: 18px; height: 18px; fill: var(--coral-ink); flex: none; margin-top: 3px; }
.tip p { font-size: .94rem; margin: 0; color: var(--ink-2); }

.facts { list-style: none; margin: 20px 0 0; max-width: 46ch; }
.facts li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: .98rem;
}
.facts li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.step__video {
  margin-top: 22px;
  max-width: 46ch;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #141014;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 32px rgba(27, 20, 22, 0.12);
  position: relative;
}

.step__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Hero (primeiro passo) ---------- */

.step--hero { min-height: calc(100vh - var(--bar)); }
.step--hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  max-width: 13ch;
}
.step--hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 42ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: var(--canvas); }
.btn--solid:hover { background: #000; }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }

.hero__meta {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: .88rem;
  color: var(--ink-3);
  max-width: 42ch;
}

/* ---------- Modo escuro do passo "disfarce" ---------- */

body.mood-dark {
  --canvas: #14100F;
  --surface: #211A18;
  --ink: #F7EFEA;
  --ink-2: #B5A49D;
  --ink-3: #8A7871;
  --rule: #362C29;
  --coral-ink: #FF8A8A;
}
body.mood-dark .btn--solid { background: var(--coral); color: #fff; }

/* ---------- Blocos de conteúdo ---------- */

.band { padding: clamp(56px, 9vw, 110px) 0; }
.band--rule { border-top: 1px solid var(--rule); }

.band__head { margin-bottom: 34px; }
.band__head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.band__head p { color: var(--ink-2); margin-top: 10px; max-width: 52ch; }

details {
  border-bottom: 1px solid var(--rule);
}
details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 500;
  font-size: 1.02rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
details a { color: var(--coral-ink); }

.help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-2px); border-color: var(--coral); }
.card h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--coral) 12%, transparent);
  margin-bottom: 14px;
}
.card__icon svg { width: 21px; height: 21px; fill: var(--coral-ink); }

.emergency-note {
  background: color-mix(in srgb, var(--alert) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--alert) 32%, transparent);
  border-left: 4px solid var(--alert);
  border-radius: 14px;
  padding: 24px;
}
.emergency-note h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.emergency-note p { color: var(--ink-2); }
.emergency-note b { color: var(--ink); }

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  text-align: center;
  color: var(--ink-2);
  font-size: .9rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 14px; }
footer a { color: var(--coral-ink); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .cinema__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .cinema__copy h2 { max-width: none; }
  .cinema__frame { border-radius: 18px; }

  .tour {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tour__stage {
    order: 1;
    position: sticky;
    top: var(--bar);
    height: auto;
    padding: 10px 0 22px;
    z-index: 20;
    background: linear-gradient(to bottom,
      var(--canvas) 0,
      var(--canvas) calc(100% - 20px),
      color-mix(in srgb, var(--canvas) 0%, transparent) 100%);
    transition: background .6s ease;
    min-width: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .tour__stage .phone { pointer-events: auto; }
  .tour__steps {
    order: 2;
    min-width: 0;
    max-width: 100%;
  }
  .tour__steps > *,
  .step > * { max-width: 100%; }
  .step h2,
  .step p,
  .step--hero h1,
  .step--hero .lead {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  .step {
    min-height: 0;
    padding: 22px 0 40px;
  }
  .step--hero {
    min-height: 0;
    padding-top: 4px;
  }
  .step h2,
  .step p,
  .tip,
  .facts,
  .step__video,
  .step--hero h1,
  .step--hero .lead,
  .hero__meta {
    max-width: none;
  }
}

/* Fixes específicos para telas pequenas (≤ 640px) */
@media (max-width: 640px) {
  :root { --gutter: 18px; }

  .topbar .wrap { gap: 10px; }
  .brand b { font-size: 15px; }
  .brand span {
    font-size: 11px;
    padding-left: 8px;
  }

  /* WhatsApp: ícone com bolinha, sem texto */
  .wa {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .wa svg { width: 20px; height: 20px; }
  .wa__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Tipografia mobile */
  .cinema { padding: calc(var(--bar) + 28px) 0 40px; }
  .cinema__badge { margin-bottom: 14px; font-size: 10px; }
  .cinema__copy h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    margin-bottom: 16px;
  }
  .cinema__card { padding: 14px 16px; font-size: .92rem; }
  .cinema__actions { margin-top: 18px; gap: 12px; }

  .step__num,
  .step__eyebrow { margin-bottom: 10px; }
  .step h2 {
    font-size: clamp(1.5rem, 6.2vw, 1.95rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 14px;
  }
  .step p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .step--hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.02;
    margin-bottom: 16px;
  }
  .step--hero .lead {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero__meta {
    margin-top: 26px;
    padding-top: 16px;
    font-size: .85rem;
  }

  .tip {
    padding: 12px 14px;
    margin-top: 18px;
    border-radius: 12px;
  }
  .tip p { font-size: .92rem; line-height: 1.45; }
  .facts { margin-top: 16px; }
  .facts li { font-size: .95rem; line-height: 1.45; padding-left: 22px; }
  .facts li::before { left: 3px; width: 7px; height: 7px; }

  /* Bandas de conteúdo */
  .band { padding: 44px 0 56px; }
  .band__head { margin-bottom: 24px; }
  .band__head h2 {
    font-size: clamp(1.5rem, 5.6vw, 1.9rem);
    line-height: 1.2;
  }
  .band__head p { font-size: .98rem; }

  /* FAQ */
  details summary { padding: 16px 32px 16px 0; font-size: .98rem; line-height: 1.4; }
  details p { padding: 0 0 18px; font-size: .95rem; line-height: 1.5; }

  /* Cards de contato */
  .help { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; }

  /* Emergência (180/190/197) */
  .emergency-note { padding: 20px; border-radius: 12px; }
  .emergency-note h3 { font-size: 1.1rem; }
  .emergency-note p { font-size: .95rem; line-height: 1.5; }
  .emergency-note .help-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .emergency-note .help-card { padding: 14px 16px; }
  .emergency-note .help-card__num { font-size: 32px; }
  .emergency-note .help-card__desc { font-size: .85rem; line-height: 1.4; }

  /* Footer */
  footer { padding: 26px 0 36px; }
  footer nav { gap: 6px 16px; font-size: .88rem; }
}

/* Tela muito estreita (≤ 380px) */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand span { display: none; }
  .brand b { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Cards de emergência (180/190/197) dentro do emergency-note */
.emergency-note .help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.emergency-note .help-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.emergency-note .help-card:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 12px 26px rgba(255, 89, 89, .12);
}
.emergency-note .help-card__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 2px;
}
.emergency-note .help-card strong { font-family: var(--display); font-size: 1rem; }
.emergency-note .help-card__desc { color: var(--ink-2); font-size: .88rem; }
