/* AZPedidos — site styles
   A página segue a conversa: faixa escura de abertura, depois os passos do pedido
   em sequência, como uma linha do tempo de mensagens. Mobile-first. */

/* ─────────── tokens ─────────── */
:root {
  --bg:         #F4F6FF;
  --surface:    #FFFFFF;
  --soft:       #E8EBFF;
  --ink:        #0B1033;
  --muted:      #4F5680;
  --line:       #D9DDF4;

  --pri:        #3D4BFF;
  --pri-text:   #3440E6;
  --on-pri:     #FFFFFF;
  --amb:        #FFC53D;
  --on-amb:     #0B1033;

  --band:       #0B1033;
  --band-2:     #141B5C;
  --band-fg:    #FFFFFF;
  --band-muted: #B8BEE2;
  --band-line:  rgba(255,255,255,.16);
  --band-card:  rgba(255,255,255,.07);

  /* mock do WhatsApp: sempre claro, como no app */
  --wa:         #008069;
  --wa-bg:      #EFEAE2;
  --wa-out:     #D9FDD3;
  --wa-in:      #FFFFFF;
  --wa-ink:     #111B21;
  --wa-meta:    #667781;
  --wa-link:    #027EB5;
  --wa-mark:    #FFE9A8;
  --wa-brand:   #25D366;

  --frame:      #0A0D1F;
  --shadow:     0 24px 60px rgba(11,16,51,.18);

  --font:       "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-chat:  "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --max:        1120px;
  --gutter:     20px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-full: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #070A22;
    --surface:  #10153D;
    --soft:     #151B4F;
    --ink:      #F2F4FF;
    --muted:    #A7AED4;
    --line:     #262D63;
    --pri-text: #99A2FF;
    --band:     #0D1240;
    --band-2:   #1A2270;
    --frame:    #02030C;
    --shadow:   0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

/* ─────────── base ─────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.022em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -.012em; line-height: 1.2; }
[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 3px solid var(--amb); outline-offset: 3px; }

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

/* ─────────── layout ─────────── */
.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left:  max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: 72px; }
.section--flush-top { padding-top: 0; }

/* ─────────── tipografia ─────────── */
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pri-text);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin-top: 16px; }
.hl { color: var(--amb); }

/* ─────────── botões ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-full);
  font: 800 1rem var(--font); text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amb   { background: var(--amb); color: var(--on-amb); }
.btn-pri   { background: var(--pri); color: var(--on-pri); }
.btn-ghost { border-color: var(--band-line); color: var(--band-fg); }
.btn-sm    { min-height: 40px; padding: 0 16px; font-size: .88rem; white-space: nowrap; }

/* ─────────── faixa escura (topo, resultado, CTA final) ─────────── */
.band { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 12% -10%, var(--band-2), transparent 62%),
    radial-gradient(38rem 26rem at 105% 105%, var(--band-2), transparent 60%);
}
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
          mask-image: linear-gradient(#000, transparent 70%);
}
.band > * { position: relative; z-index: 1; }
.band .eyebrow { color: var(--amb); }
.band .lead { color: var(--band-muted); }

/* ─────────── cabeçalho ─────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.topbar-logo img { height: 28px; width: auto; }
.topbar-nav { display: none; gap: 28px; font-weight: 700; font-size: .95rem; }
.topbar-nav a { text-decoration: none; color: var(--band-muted); }
.topbar-nav a:hover { color: var(--band-fg); }

/* ─────────── hero ─────────── */
.hero { display: grid; gap: 44px; padding-block: 36px 0; }
.hero h1 { margin-top: 0; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.proof {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none;
  font-size: .93rem; font-weight: 600; color: var(--band-muted);
}
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amb); flex: none; }
.hero-stage { display: flex; justify-content: center; align-items: flex-end; }
.hero-stage .phone--back { display: none; }

/* ─────────── telefone ─────────── */
.phone { width: min(100%, 290px); background: var(--frame); border-radius: 38px; padding: 8px; box-shadow: var(--shadow); flex: none; }
.phone-screen { border-radius: 31px; overflow: hidden; background: #fff; }
.phone--cut { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.phone--cut .phone-screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ─────────── mock do WhatsApp ─────────── */
.chat {
  background: var(--wa-bg); color: var(--wa-ink);
  font-family: var(--font-chat); font-weight: 400; font-size: 13.5px; line-height: 1.34;
}
.chat-header { display: flex; align-items: center; gap: 9px; background: var(--wa); color: #fff; padding: 10px 12px; }
.chat-header img { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.chat-header b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.15; }
.chat-header span { font-size: 11px; opacity: .85; }
.chat-msgs { display: flex; flex-direction: column; gap: 7px; padding: 12px 10px 16px; }
.bub { max-width: 88%; padding: 6px 9px 5px; border-radius: 9px; box-shadow: 0 1px 1px rgba(0,0,0,.13); white-space: pre-line; }
.bub--in  { align-self: flex-start; background: var(--wa-in);  border-top-left-radius: 2px; }
.bub--out { align-self: flex-end;   background: var(--wa-out); border-top-right-radius: 2px; }
.bub time { float: right; font-size: 10px; color: var(--wa-meta); margin: 5px 0 -1px 10px; }
.bub-action {
  display: block; clear: both; text-align: center;
  margin: 7px -9px -5px; padding: 9px 0; border-top: 1px solid #E9EDEF;
  color: var(--wa-link); font-weight: 600;
}
.bub mark { background: var(--wa-mark); color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 700; }

/* ─────────── a dor ─────────── */
.pains { display: grid; gap: 14px; margin-top: 34px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.pain h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pain p { color: var(--muted); font-size: .98rem; }
.pain-quote {
  display: inline-block; margin-bottom: 14px; padding: 8px 12px;
  font-family: var(--font-chat); font-weight: 400; font-size: .95rem;
  background: var(--soft); color: var(--ink);
  border-radius: var(--r-sm); border-top-left-radius: 3px;
}

/* ─────────── como funciona ─────────── */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 56px; }
.step { display: grid; gap: 26px; align-items: center; }
.step-n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%; background: var(--amb); color: var(--on-amb); font-weight: 800; font-size: 1rem;
}
.step p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.checklist { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-weight: 600; font-size: .98rem; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--pri) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.badge-soon {
  display: inline-block; margin-left: 6px; padding: 2px 9px; white-space: nowrap;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--soft); color: var(--pri-text); border-radius: var(--r-full);
}
.step-media { display: flex; justify-content: center; }
.step-media .phone { width: min(100%, 270px); }

/* janela de navegador com print do painel */
.window { margin: 0; width: 100%; max-width: 520px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--soft); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 8px; font-size: .72rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* print do painel + notificação no WhatsApp sobreposta */
.notify { position: relative; width: 100%; max-width: 520px; }
.notify-toast {
  position: relative; display: flex; gap: 11px;
  margin: -34px 10px 0 auto; width: min(92%, 330px); padding: 12px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35;
}
.notify-toast i { width: 36px; height: 36px; border-radius: 10px; background: var(--wa-brand); flex: none; display: grid; place-items: center; }
.notify-toast b { display: block; font-weight: 800; }
.notify-toast span { color: var(--muted); }

/* ─────────── vídeo ─────────── */
.video { background: var(--soft); }
.video-grid { display: grid; gap: 30px; align-items: center; }
.video video {
  display: block; width: min(100%, 300px); aspect-ratio: 9 / 16; margin-inline: auto;
  border-radius: 26px; background: var(--frame); box-shadow: var(--shadow);
}

/* ─────────── painel (recursos) ─────────── */
.features { display: grid; gap: 14px; margin-top: 36px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.feature p { color: var(--muted); font-size: .98rem; margin-top: 8px; }
.feature svg { width: 26px; height: 26px; stroke: var(--pri-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feature--wide { padding: 0; overflow: hidden; }
.feature--wide .feature-text { padding: 24px; }
.feature--wide img { width: 100%; border-top: 1px solid var(--line); }

/* ─────────── resultado ─────────── */
.gains-grid { display: grid; gap: 34px; }
.gains-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gains-list li { background: var(--band-card); border: 1px solid var(--band-line); border-radius: var(--r-lg); padding: 20px 22px; }
.gains-list b { display: block; font-weight: 800; font-size: 1.12rem; }
.gains-list span { color: var(--band-muted); font-size: .98rem; }

/* ─────────── FAQ ─────────── */
.faq { display: grid; gap: 10px; margin-top: 30px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 600; color: var(--pri-text); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 64ch; }

/* ─────────── CTA final ─────────── */
.final { text-align: center; }
.final-inner { display: grid; justify-items: center; gap: 18px; padding-block: 8px; }
.final .lead { margin-top: 0; }

/* ─────────── rodapé ─────────── */
.footer { padding-block: 28px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer img { height: 28px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* ─────────── desktop ─────────── */
@media (min-width: 760px) {
  .section { padding-block: 96px; }
  .section--flush-top { padding-top: 0; }

  .topbar-nav { display: flex; }
  .topbar-logo img { height: 34px; }
  .btn-sm { min-height: 44px; padding: 0 20px; font-size: .95rem; }

  .hero { grid-template-columns: 1.05fr .95fr; align-items: end; gap: 32px; padding-block: 56px 0; }
  .hero-copy { padding-bottom: 72px; }
  .hero-stage .phone--back { display: block; width: 230px; margin-left: -46px; transform: translateY(46px); }

  .pains { grid-template-columns: repeat(3, 1fr); }

  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step:nth-child(even) .step-media { order: -1; }

  .video-grid { grid-template-columns: 1fr auto; gap: 64px; }

  .features { grid-template-columns: repeat(3, 1fr); }
  .feature--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; }
  .feature--wide img { border-top: 0; border-left: 1px solid var(--line); }
  .feature--wide .feature-text { padding: 36px; }

  .gains-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 56px; }
  .gains-list { grid-template-columns: 1fr 1fr; }
}

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