/* Metrópole Store - site institucional. Cores da marca: verde #4B8366 e vermelho #C13B2A. */
:root {
  --green: #4b8366;
  --green-dark: #3d6f55;
  --green-deep: #2f5a44;
  --red: #c13b2a;
  --red-dark: #a3301f;
  --cream: #fff4ea;
  --beige: #e3af83;
  --whats: #1f9d55;
  --ink: #1f2522;
  --muted: #5d6762;
  --line: #e4e7e3;
  --bg: #ffffff;
  --bg-alt: #f5f7f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(31 37 34 / 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Botoes ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats::before { content: ""; width: 18px; height: 18px; background: currentColor; border-radius: 50%; mask: radial-gradient(circle at 50% 50%, transparent 38%, #000 40%); }
.btn-whats:hover { background: #18834a; }
.btn-ghost { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

/* Cabecalho ------------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { line-height: 0; }
.logo img { width: 168px; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.menu a:not(.btn):hover { color: var(--green-dark); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; }

/* Abertura ------------------------------------------------------------------ */
.hero { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.hl { color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); }
.checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* Celular de exemplo */
.phone {
  justify-self: center; width: 100%; max-width: 330px; border-radius: 34px; background: #111; padding: 12px;
  box-shadow: 0 30px 60px rgb(31 37 34 / 0.25);
}
.phone-top { display: flex; align-items: center; gap: 8px; background: #075e54; color: #fff; padding: 12px 14px; border-radius: 24px 24px 0 0; font-size: 0.92rem; }
.phone-top small { margin-left: auto; opacity: 0.8; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chat { background: #ece5dd; padding: 14px 10px; border-radius: 0 0 24px 24px; display: grid; gap: 8px; font-size: 0.86rem; line-height: 1.4; }
.msg { margin: 0; padding: 8px 10px; border-radius: 10px; max-width: 86%; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.msg.in { background: #dcf8c6; justify-self: end; }
.msg.out { background: #fff; justify-self: start; }
.msg .link { color: #0b6bcb; word-break: break-all; }

/* Um pedido do comeco ao fim ---------------------------------------------------- */
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 48px; align-items: start; }
.flow-text { position: sticky; top: 96px; }
.flow-caption { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 18px; min-height: 120px; }
.flow-caption-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; }
.flow-caption p { color: var(--muted); margin: 4px 0 0; }
.flow-steps { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flow-steps button {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.flow-steps button:hover { border-color: var(--green); }
.flow-steps button[aria-current="step"] { background: var(--green); border-color: var(--green); color: #fff; }
.flow-steps li { counter-increment: passo; }
.flow-steps button::before { content: counter(passo) " · "; opacity: 0.7; }

.phone-tall { max-width: 360px; }
.phone-screen { border-radius: 24px; overflow: hidden; }
.flow-chat { height: 540px; overflow-y: auto; align-content: start; border-radius: 0; position: relative; overscroll-behavior: contain; scrollbar-width: thin; }
.msg-photo { padding: 4px; line-height: 0; }
.msg-photo svg { width: 100%; height: auto; border-radius: 8px; }
.typing { margin: 0; justify-self: start; background: #fff; padding: 10px 12px; border-radius: 10px; display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa39e; animation: digitando 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes digitando { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Sem JS a conversa e a pagina aparecem inteiras, uma embaixo da outra */
.pay { background: #fff; margin-top: 12px; }
.pay-bar { background: #f1f3f1; color: var(--muted); font-size: 0.8rem; padding: 10px 14px; text-align: center; }
.pay-body { padding: 16px; font-size: 0.88rem; line-height: 1.45; display: grid; gap: 8px; min-height: 0; }
.pay-body h3 { font-size: 1rem; margin: 6px 0 2px; }
.pay-store { font-weight: 700; margin: 0; }
.pay-item { color: var(--muted); margin: 0; }
.pay-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; margin: 0; }
.pay-state { display: grid; gap: 8px; }
.pay-btn { margin: 0; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; }
.pay-btn.primary { background: var(--green); color: #fff; }
.pay-btn.text { color: var(--green-dark); font-weight: 600; }
.pay-small { color: var(--muted); margin: 0; font-size: 0.82rem; }
.pay-ok { font-size: 1.1rem; font-weight: 800; text-align: center; margin: 12px 0 0; }
.pay-foot { color: var(--muted); font-size: 0.75rem; margin: 6px 0 0; }
.center { text-align: center; }
.qr { width: 132px; height: 132px; justify-self: center; }
.qr svg { width: 100%; height: 100%; display: block; }

/* Com JS: uma tela por vez, mensagens aparecem conforme a conversa anda */
.flow.js .phone-screen[hidden] { display: none; }
.flow.js .pay { margin-top: 0; min-height: 594px; display: flex; flex-direction: column; }
.flow.js .pay-body { flex: 1; display: flex; flex-direction: column; }
.flow.js .pay-foot { margin-top: auto; }
.flow.js .flow-chat > [data-stage]:not(.show) { display: none; }
.flow.js .flow-chat > .show.novo { animation: entra 0.25s ease-out; }
.flow.js .pay-state:not(.show) { display: none; }
.flow.js .pay-state.show { animation: entra 0.25s ease-out; }

/* Secoes ---------------------------------------------------------------------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 32px; }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); }
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.list li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.feature .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.feature p { margin: 0; }

/* Funcionalidades --------------------------------------------------- */
.features-intro { padding-bottom: 0; }
.features-first { padding-top: 40px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.toc a:hover { border-color: var(--green); color: var(--green-dark); }
.section h2 span { margin-right: 4px; }
.section h2 + .cards { margin-top: 28px; }
.note { margin-top: 20px; border-left: 4px solid var(--green); }
.note p { margin: 0; }
.note-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.twofa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 28px 0 20px; }
.code-demo { display: grid; justify-items: center; gap: 2px; background: var(--bg-alt); border-radius: var(--radius); padding: 16px 22px; }
.code-demo span, .code-demo small { color: var(--muted); font-size: 0.8rem; }
.code-demo strong { font-size: 1.8rem; letter-spacing: 0.12em; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.highlight { background: var(--green); color: #fff; }
.highlight .eyebrow { color: var(--cream); }
.highlight .lead { color: rgb(255 255 255 / 0.9); }
.highlight-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.send-list { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.send-list .list { margin: 8px 0 14px; font-weight: 600; }
.send-list .muted { margin: 0; }

/* Perguntas -------------------------------------------------------------------- */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Chamada final e rodape ------------------------------------------------------- */
.cta-final { background: var(--green); color: #fff; padding: 64px 0; position: relative; }
.cta-final::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--red); }
.cta-final-inner { text-align: center; display: grid; justify-items: center; gap: 6px; }
.cta-logo { width: 200px; margin-bottom: 10px; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 4px; justify-items: start; }
.footer p { margin: 0; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Celular ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid, .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-text { position: static; }
  .highlight-inner, .twofa { grid-template-columns: minmax(0, 1fr); }
  .flow-chat { height: 480px; }
  .flow.js .pay { min-height: 534px; }
  .cards.two, .cards.three { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 56px 0; }
}
/* Com seis itens o menu nao cabe abaixo de ~960px: vira o menu do celular */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu .btn { margin-top: 12px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .logo img { width: 140px; }
  .hero { padding: 36px 0 48px; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .typing span, .flow.js .flow-chat > .show.novo, .flow.js .pay-state.show { animation: none; }
}

.menu a[aria-current="page"] { color: var(--green-dark); }
/* Quem somos ------------------------------------------------------------------- */
.about { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.about-grid > div > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.about-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green-dark); margin-bottom: 16px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
/* Menu com seis itens: nunca quebra a linha; aperta antes de virar o menu do celular */
.menu a { white-space: nowrap; }
@media (min-width: 961px) { .menu { gap: 18px; } .menu a:not(.btn) { font-size: 0.92rem; } }
@media (max-width: 1100px) and (min-width: 961px) { .menu { gap: 12px; } .menu a:not(.btn) { font-size: 0.86rem; } .logo img { width: 130px; } }

/* O painel por dentro ----------------------------------------------------------- */
.tour { background: var(--green-deep); color: #fff; }
.tour .eyebrow { color: var(--cream); }
.tour .section-lead { color: rgb(255 255 255 / 0.85); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
.tour-tabs { display: grid; gap: 8px; }
.tour-tabs button {
  font: inherit; text-align: left; cursor: pointer; display: grid; gap: 4px; padding: 12px 16px; border-radius: 12px;
  color: #fff; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16);
}
.tour-tabs button:hover { background: rgb(255 255 255 / 0.12); }
.tour-tabs button span { display: none; font-size: 0.88rem; line-height: 1.45; }
.tour-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.tour-tabs button[aria-selected="true"] span { display: block; color: var(--muted); }
.tour-frame { background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / 0.3); }
.tour-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0ee; }
.tour-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd4d0; }
.tour-bar span { margin-left: 10px; font-size: 0.78rem; color: var(--muted); background: #fff; border-radius: 6px; padding: 2px 10px; }
.tour-shot { margin: 0; }
.tour-shot img { display: block; width: 100%; height: auto; }
.tour-shot figcaption { padding: 12px 16px 16px; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); }
.tour-shot figcaption strong { color: var(--ink); }
/* Com JS: uma tela por vez; a explicacao fica na aba (no celular, embaixo da tela) */
.tour.js .tour-shot:not(.show) { display: none; }
.tour.js .tour-shot.show img { animation: entra 0.25s ease-out; }
.tour.js .tour-shot figcaption { display: none; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-tabs { display: flex; flex-wrap: wrap; }
  .tour-tabs button { padding: 6px 14px; border-radius: 999px; font-size: 0.9rem; }
  .tour-tabs button[aria-selected="true"] span { display: none; }
  .tour.js .tour-shot figcaption { display: block; }
}
@media (prefers-reduced-motion: reduce) { .tour.js .tour-shot.show img { animation: none; } }
.tour-shot a { display: block; cursor: zoom-in; }

/* A tela do painel em tamanho grande (modal) ------------------------------- */
.zoom { width: min(1440px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); overflow: visible; }
.zoom::backdrop { background: rgb(15 20 17 / 0.82); }
.zoom[open] { animation: entra 0.2s ease-out; }
.zoom figure { margin: 0; }
.zoom img { display: block; width: 100%; height: auto; max-height: calc(94vh - 64px); object-fit: contain; border-radius: var(--radius) var(--radius) 0 0; background: #eef0ee; }
.zoom figcaption { padding: 12px 16px 14px; font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); }
.zoom figcaption strong { color: var(--ink); }
.zoom [data-zoom-n] { font-variant-numeric: tabular-nums; margin-right: 4px; }
.zoom button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font: 400 1.9rem/1 var(--font); cursor: pointer; box-shadow: var(--shadow); }
.zoom button:hover { background: var(--cream); }
.zoom button:focus-visible { outline: 3px solid var(--beige); outline-offset: 2px; }
.zoom-close { top: -18px; right: -18px; font-size: 1.6rem; }
.zoom-nav { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: -22px; }
.zoom-next { right: -22px; }
@media (max-width: 760px) {
  .zoom { width: 100vw; max-height: 100vh; border-radius: 0; }
  .zoom img { border-radius: 0; max-height: calc(100vh - 120px); }
  .zoom-close { top: 8px; right: 8px; }
  .zoom-prev { left: 8px; }
  .zoom-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .zoom[open] { animation: none; } }
