/* Página de vendas da Brylle Whats. Fontes servidas pelo próprio site (sem Google Fonts). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --black: #000;
  --paper: #eef3ef;
  --mute: #8c978f;
  --line: #1d2a22;
  --bubble: #0d2418;
  --g: #0ef866;
  --g-ink: #02130a;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--paper);
  font: 18px/1.6 var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--g); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
p { margin: 0; }
code { font: inherit; color: var(--g); white-space: nowrap; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--g); color: var(--g-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--g); color: var(--g-ink); border: 2px solid var(--g); border-radius: 999px;
  font: 700 17px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: #5bff97; border-color: #5bff97; }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--paper); border-color: #3a473f; }
.btn-ghost:hover { background: transparent; border-color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Barra do topo */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand img { display: block; height: 30px; width: auto; }
.bar nav { display: none; gap: 24px; margin-left: auto; }
.bar nav a { color: var(--mute); text-decoration: none; font-size: 16px; }
.bar nav a:hover { color: var(--paper); }
.bar .btn { margin-left: auto; }
@media (min-width: 860px) { .bar nav { display: flex; } .bar .btn { margin-left: 0; } }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 72px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 64px; padding-top: 88px; padding-bottom: 112px; } }
.product { color: var(--mute); font-size: 16px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 70px); line-height: 1.03; letter-spacing: -0.018em;
  font-weight: 700; font-variation-settings: "opsz" 60; max-width: 14ch;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #c9d2cc; max-width: 34em; margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { color: var(--mute); font-size: 15px; margin-top: 16px; max-width: 34em; }

/* Demonstração: modelo → mensagens personalizadas */
.demo { margin: 0; border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: #050b07; }
.tpl { border: 1px dashed #2f4a3a; border-radius: 14px; padding: 16px 18px; }
.tpl-label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.tpl p { font-size: 17px; line-height: 1.55; }
.tok { color: var(--g); font-family: var(--display); font-weight: 600; font-variation-settings: "opsz" 18; }
.feed { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; min-height: 380px; align-content: start; }
.msg { display: grid; justify-items: end; gap: 4px; }
.to { font-size: 13px; color: var(--mute); padding-right: 6px; }
.bubble {
  position: relative; max-width: 88%; background: var(--bubble); border-radius: 14px 4px 14px 14px;
  padding: 10px 14px 8px; font-size: 16px; line-height: 1.45;
}
.bubble b { color: var(--g); font-weight: 700; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); margin-top: 2px; }
.ticks { width: 18px; height: 11px; display: inline-block; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3 3 6-7M7 9l1 1 7-8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 11'%3E%3Cpath d='M1 6l3 3 6-7M7 9l1 1 7-8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.msg.sent .ticks { color: var(--g); }
.wait { justify-self: center; font-size: 13px; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.wait.done { opacity: .45; }
.progress { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.progress .count { color: var(--paper); font-weight: 700; }

/* Animação única, guiada pelo landing.js (só quando o visitante não pediu menos movimento) */
.demo.play [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.demo.play [data-step].in { opacity: 1; transform: none; }

/* Seções */
.steps, .features, .plans, .faq { padding-top: 88px; padding-bottom: 8px; scroll-margin-top: 64px; }
.steps { border-top: 1px solid var(--line); }
.step-list { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; gap: 36px; }
@media (min-width: 860px) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step-list li { counter-increment: step; }
.step-list li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 88px; line-height: .9;
  font-variation-settings: "opsz" 96; color: transparent; -webkit-text-stroke: 1.5px var(--g); margin-bottom: 18px;
}
.step-list p { color: #c9d2cc; margin-top: 10px; max-width: 32em; }

.feat { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .feat { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.feat > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.feat dt { font-family: var(--display); font-weight: 700; font-size: 21px; font-variation-settings: "opsz" 24; }
.feat dd { margin: 6px 0 0; color: #c9d2cc; max-width: 34em; }

.care { padding-top: 88px; }
.care-in { border-left: 3px solid var(--g); padding: 6px 0 6px 24px; max-width: 780px; }
.care-in p { color: #c9d2cc; margin-top: 14px; }

.plan-grid { display: grid; gap: 20px; margin-top: 40px; align-items: start; }
@media (min-width: 820px) { .plan-grid { grid-template-columns: 1fr 1.25fr; gap: 28px; } }
.plan { border: 1px solid #2a372f; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan-pro { border: 2px solid var(--g); padding: 34px; }
.price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price .num { font-family: var(--display); font-weight: 750; font-size: clamp(44px, 5vw, 60px); letter-spacing: -0.015em; line-height: 1; font-variation-settings: "opsz" 96; }
.price .per { color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; color: #d6ddd8; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--g); border-bottom: 2px solid var(--g); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }
.plan .fine { margin-top: 14px; }

.faq-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--g); font-family: var(--display); font-size: 28px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #c9d2cc; padding: 0 0 22px; max-width: 44em; }
.contact { margin-top: 24px; color: var(--mute); }

.closing { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.018em; max-width: 14ch; }

.foot { border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 36px; }
.foot-in p { max-width: 52em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
