/* =========================================================
   Protocolo Zero Risco — landing page
   Tema: preto profundo, verde de mesa proprietária, uma coluna
   ========================================================= */

:root {
  --bg: #040705;
  --bg-2: #060b08;
  --panel: #0a100d;
  --panel-2: #0d1512;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fg: #eef5f1;
  --muted: #8b9d95;
  --muted-2: #62736b;
  --g: #22d38a;
  --g-bright: #7dfcc4;
  --g-deep: #12a86f;
  --wa: #25d366;
  --f-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(34, 211, 138, 0.16), transparent 62%),
    radial-gradient(ellipse 55% 40% at 85% 30%, rgba(34, 211, 138, 0.05), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 45%);
  background-attachment: fixed;
  color: var(--fg);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 72%);
  opacity: 0.5;
}

img { max-width: 100%; }

a { color: inherit; }

::selection { background: rgba(34, 211, 138, 0.28); color: #fff; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--g);
  color: #04140c;
  font-weight: 600;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.topbar-in {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px max(18px, env(safe-area-inset-left, 0px)) 12px max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  width: 32px;
  height: 32px;
  flex: none;
  display: block;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mark.sm { width: 26px; height: 26px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 600 0.95rem/1.15 var(--f-display); letter-spacing: -0.01em; }
/* ---------- layout ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 76px) max(18px, env(safe-area-inset-left, 0px)) 40px max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 76px);
}

.hero { text-align: center; display: flex; flex-direction: column; gap: 22px; }

.eyebrow {
  margin: 0;
  font: 500 0.72rem/1 var(--f-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 138, 0.7));
}
.eyebrow::after { background: linear-gradient(90deg, rgba(34, 211, 138, 0.7), transparent); }

h1 {
  margin: 0 auto;
  max-width: 21ch;
  font: 600 clamp(2rem, 5.4vw, 3.5rem)/1.08 var(--f-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 span {
  display: block;
  margin-top: 0.18em;
  background: linear-gradient(180deg, var(--g-bright) 10%, var(--g-deep) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
}

/* ---------- video ---------- */

.video-wrap { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }

.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 138, 0.08), 0 0 90px -20px rgba(34, 211, 138, 0.35);
  isolation: isolate;
}

.video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
}

.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(circle at 50% 45%, rgba(4, 7, 5, 0.05), rgba(4, 7, 5, 0.55));
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play i {
  width: clamp(64px, 9vw, 84px);
  height: clamp(64px, 9vw, 84px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--g-bright), var(--g));
  box-shadow: 0 10px 34px rgba(34, 211, 138, 0.4), 0 0 0 0 rgba(34, 211, 138, 0.5);
  animation: ping 2.6s ease-out infinite;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s;
}
.play i::after {
  content: "";
  border-left: clamp(20px, 2.6vw, 26px) solid #04140c;
  border-top: clamp(12px, 1.5vw, 15px) solid transparent;
  border-bottom: clamp(12px, 1.5vw, 15px) solid transparent;
  margin-left: 6px;
}

.video:hover img { transform: scale(1.06); filter: brightness(0.92); }
.video:hover .play i { transform: scale(1.07); box-shadow: 0 14px 42px rgba(34, 211, 138, 0.55); }
.video:focus-visible { outline: 2px solid var(--g); outline-offset: 4px; }

@keyframes ping {
  0% { box-shadow: 0 10px 34px rgba(34, 211, 138, 0.4), 0 0 0 0 rgba(34, 211, 138, 0.5); }
  70% { box-shadow: 0 10px 34px rgba(34, 211, 138, 0.4), 0 0 0 26px rgba(34, 211, 138, 0); }
  100% { box-shadow: 0 10px 34px rgba(34, 211, 138, 0.4), 0 0 0 0 rgba(34, 211, 138, 0); }
}

.video-meta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 7, 5, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  max-width: calc(100% - 32px);
}
.video-meta b { font: 600 0.92rem/1.2 var(--f-display); letter-spacing: -0.01em; }
.video-meta small { color: var(--muted); font-size: 0.75rem; }

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-hint { margin: 0; text-align: center; color: var(--muted-2); font-size: 0.82rem; }

/* ---------- buttons ---------- */

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 1rem/1.2 var(--f-body);
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s, background 0.22s, border-color 0.22s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--g-bright) 0%, var(--g) 45%, var(--g-deep) 100%);
  color: #03170e;
  box-shadow: 0 14px 36px -12px rgba(34, 211, 138, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px rgba(34, 211, 138, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border-color: var(--line-strong);
  color: var(--fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.55);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.12), rgba(37, 211, 102, 0.04));
}
.btn-ghost .wa { color: var(--wa); }

.btn:focus-visible { outline: 2px solid var(--g-bright); outline-offset: 3px; }

.hint {
  margin: -6px auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ---------- results ---------- */

.results {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--line);
}

.results-head { text-align: center; display: flex; flex-direction: column; gap: 14px; }

.results h2 {
  margin: 0 auto;
  max-width: 24ch;
  font: 600 clamp(1.5rem, 3.6vw, 2.1rem)/1.22 var(--f-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.results h2 em {
  font-style: normal;
  color: var(--g-bright);
}

.results-sub { margin: 0 auto; max-width: 46ch; color: var(--muted); font-size: 0.94rem; }

.group { display: flex; flex-direction: column; gap: 16px; }

.label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 0.74rem/1 var(--f-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g);
}
.label span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(34, 211, 138, 0.35);
  border-radius: 6px;
  color: var(--g-bright);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 138, 0.35), transparent);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
.shot:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 138, 0.35);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.95), 0 0 40px -22px rgba(34, 211, 138, 0.6);
}

/* imagem sempre inteira: nada é cortado, e o par de cards fica alinhado */
.shot-btn {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}
.shot-btn img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.shot-btn:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; }

.zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(4, 7, 5, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.zoom svg { width: 16px; height: 16px; }
.shot:hover .zoom,
.shot-btn:focus-visible .zoom { opacity: 1; transform: none; }

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.shot figcaption b { font: 600 0.85rem/1.3 var(--f-body); color: var(--fg); }
.shot figcaption span { color: var(--muted-2); font-size: 0.78rem; }

/* ---------- final CTA ---------- */

.cta2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: clamp(34px, 6vw, 54px) clamp(20px, 5vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(34, 211, 138, 0.16), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--bg));
  overflow: hidden;
}
.cta2::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 138, 0.5), transparent 45%, rgba(34, 211, 138, 0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cta2 h2 {
  margin: 0;
  max-width: 22ch;
  font: 600 clamp(1.35rem, 3.4vw, 1.85rem)/1.2 var(--f-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cta2 p { margin: 0; color: var(--muted); }
.cta2 .btn { width: min(420px, 100%); margin-top: 8px; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 5, 0.6);
  padding: 34px max(18px, env(safe-area-inset-left, 0px)) calc(34px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-right, 0px));
}
.footer-in {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 600 0.9rem/1 var(--f-display);
  color: var(--fg);
}
.footer-brand:hover { color: var(--g-bright); }
.disclaimer {
  margin: 0;
  max-width: 68ch;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.7;
}
.copy { margin: 0; color: #46544d; font-size: 0.72rem; letter-spacing: 0.06em; }

@media (max-width: 899px) {
  .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-right, 0px));
  background: rgba(4, 7, 5, 0.86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { padding: 14px 16px; font-size: 0.92rem; border-radius: 12px; }
.sticky-cta .btn-ghost { padding: 14px; }
.sticky-cta .btn-ghost svg { width: 20px; height: 20px; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
  overflow: auto;
  text-align: center;
  padding: clamp(52px, 7vw, 64px) clamp(12px, 4vw, 40px) clamp(24px, 5vw, 40px);
  background: rgba(2, 5, 3, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.2s;
  -webkit-overflow-scrolling: touch;
}
.lightbox[hidden] { display: none; }
.lightbox.is-on { opacity: 1; }
.lightbox img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: min(100%, 760px);
  max-height: none;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.lb-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.12); }
.lb-close svg { width: 20px; height: 20px; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .actions { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .shot-btn img { width: 100%; }
  .video-meta { left: 12px; bottom: 10px; padding: 7px 11px; }
  .video-meta b { font-size: 0.82rem; }
  .video-meta small { font-size: 0.7rem; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.15em; }
  .eyebrow::before, .eyebrow::after { display: none; }
}

@media (max-width: 430px) {
  .shot figcaption { font-size: 0.78rem; }
}

@media (min-width: 900px) {
  .sticky-cta { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
