/* Encomendas por TROKDCARRO — página de vendas (site estático) */

:root {
  --paper: #ffffff;
  --sage: #eef2ec;
  --sage-deep: #dfe7e0;
  --ink: #17221c;
  --muted: #4e5b54;
  --green: #0f5e3f;
  --green-deep: #0a4530;
  --green-soft: #dcf5e3;
  --label: #f2b01e;
  --label-ink: #3a2a00;
  --line: #d7ded8;
  --font-display: "Bricolage Grotesque", "Albert Sans", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1120px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }

p { margin: 0; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--label);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 16px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); color: var(--green-deep); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Topo */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav .btn { min-height: 44px; padding: 8px 18px; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* Herói */
.hero { padding: 72px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .lead { font-size: 1.22rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proofs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.proof { display: flex; flex-direction: column; gap: 6px; }
.proof strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.proof span { color: var(--muted); font-size: .95rem; }

/* Conversa (mockup) */
.chat {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--sage-deep);
  margin-bottom: 4px;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex: none;
}
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { color: var(--muted); font-size: .85rem; }
.msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .95rem;
  line-height: 1.45;
  position: relative;
}
.msg-in { background: #fff; border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-out { background: var(--green-soft); border-bottom-right-radius: 6px; align-self: flex-end; }
.msg time {
  display: block;
  text-align: right;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}
.msg-photo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.msg-photo .thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--sage-deep);
  display: grid;
  place-items: center;
  flex: none;
}
.msg-photo .thumb svg { width: 36px; height: 28px; }
.msg-photo span { font-size: .9rem; color: var(--muted); }
.shelf {
  display: inline-block;
  background: var(--label);
  color: var(--label-ink);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.msg-out.shelf-only {
  background: var(--label);
  color: var(--label-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  padding: 8px 20px;
}
.msg-out.shelf-only time { color: var(--label-ink); opacity: .7; }
.msg-qr {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.msg-qr .qr {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  align-self: center;
}
.msg-qr p { padding: 0 4px 2px; }
.chat-foot { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0; }
.chat-foot .input {
  flex: 1;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: .9rem;
  border: 1px solid var(--sage-deep);
}
.chat-foot .send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.chat-foot .send svg { width: 18px; height: 18px; }
.hero-chat { position: relative; }
.hero-chat .tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Seções */
.section { padding: 88px 0; }
.section-sage { background: var(--sage); }
.section-head { max-width: 42rem; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* Problema */
.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.problem {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.problem p { color: var(--muted); }

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: passo;
}
.step {
  background: #fff;
  border-radius: 20px;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-increment: passo;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step-num::before { content: counter(passo); }
.step p { color: var(--muted); }
.step .mini {
  margin-top: 6px;
  background: var(--sage);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step .mini .msg { font-size: .88rem; max-width: 92%; }

/* Benefícios por papel */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.role { display: flex; flex-direction: column; gap: 14px; }
.role-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sage);
  color: var(--green);
  display: grid;
  place-items: center;
}
.role-icon svg { width: 26px; height: 26px; }
.role ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.role li { position: relative; padding-left: 24px; color: var(--muted); }
.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 3px solid var(--green);
  box-sizing: border-box;
}

/* Funcionalidades */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature svg { width: 28px; height: 28px; color: var(--green); }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Sem app / número próprio */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.panel {
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-green { background: var(--green); color: #fff; }
.panel-green p { color: #d9eadf; }
.panel-outline { border: 2px dashed var(--line); }
.panel-outline p { color: var(--muted); }
.soon {
  align-self: flex-start;
  background: var(--label);
  color: var(--label-ink);
  font-weight: 700;
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: 999px;
}

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green);
  flex: none;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Chamada final */
.cta { background: var(--green-deep); color: #fff; padding: 88px 0; }
.cta .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta h2 { color: #fff; max-width: 760px; }
.cta p { color: #d9eadf; font-size: 1.15rem; max-width: 640px; }
.cta small { color: #a9c7b5; font-size: .92rem; }

/* Rodapé */
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  color: var(--muted);
  font-size: .92rem;
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* Página de privacidade */
.doc { max-width: 720px; padding: 64px 0 88px; display: flex; flex-direction: column; gap: 18px; }
.doc h2 { font-size: 1.4rem; margin-top: 18px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Responsivo */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .problems, .steps, .roles { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav a { padding: 12px 0; }
  .nav .btn { margin-top: 8px; justify-content: center; }
  .nav.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 44px 0 40px; }
  .proofs { grid-template-columns: 1fr; gap: 14px; }
  .features, .duo { grid-template-columns: 1fr; }
  .panel { padding: 26px; }
  .chat { padding: 14px; border-radius: 20px; }
  .msg { max-width: 92%; }
  .cta { padding: 64px 0; }
}
