html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Layout: coluna editorial estreita com faixas de largura total; ritmo guiado pela jornada da consulta (agendar → atender → cobrar). */
:root {
  --ink: #0c2232;          /* azul-petróleo quase preto, texto */
  --paper: #f5f9fb;        /* branco clínico levemente azulado */
  --surface: #ffffff;
  --line: #d6e3ea;
  --muted: #557080;
  --brand: #1a9ee0;        /* azul da marca */
  --brand-deep: #0a66c8;
  --cyan: #0fc9c0;         /* ciano do símbolo P */
  --brand-ink: #ffffff;
  --soft: #e6f4fb;
  --warn-bg: #fff6e0;
  --warn-ink: #7a5300;
  --taken: #e9eef1;
  --ok-bg: #e1f5ea;
  --ok-ink: #136b3d;

  --display: "Lexend", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.2vw, 3.1rem);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e4eff5; --paper: #0a1822; --surface: #102432; --line: #1f3a4b;
    --muted: #8fabbb; --brand: #3bb4f0; --brand-deep: #62c3f5; --cyan: #2fe0d4;
    --brand-ink: #04131c; --soft: #12324a; --warn-bg: #3a2c05; --warn-ink: #f5d27a; --taken: #1a3040; --ok-bg: #0f3323; --ok-ink: #7fe0a8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4eff5; --paper: #0a1822; --surface: #102432; --line: #1f3a4b;
  --muted: #8fabbb; --brand: #3bb4f0; --brand-deep: #62c3f5; --cyan: #2fe0d4;
  --brand-ink: #04131c; --soft: #12324a; --warn-bg: #3a2c05; --warn-ink: #f5d27a; --taken: #1a3040; --ok-bg: #0f3323; --ok-ink: #7fe0a8;
}

* { box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  padding-inline: 20px;
}
.wrap { max-width: 1040px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-deep);
}
.lede { color: var(--muted); font-size: var(--step-1); max-width: 38ch; }
a { color: var(--brand-deep); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ── Topo ───────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: var(--display); font-weight: 500; letter-spacing: 0.14em; font-size: 1.05rem; }
.wordmark b { color: var(--brand); font-weight: 500; }
.top .tag { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ── Hero ───────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 32px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--brand-deep), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); background: var(--surface); }

/* Maquete do link de agendamento */
.phone {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; box-shadow: 0 24px 60px -30px rgba(10, 102, 200, 0.45);
  display: flex; flex-direction: column; gap: 14px; max-width: 380px; justify-self: end; width: 100%;
}
.phone-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-family: var(--display); font-size: 0.8rem; color: var(--brand-deep); }
.phone-head strong { font-family: var(--display); font-weight: 500; font-size: 0.95rem; display: block; line-height: 1.2; }
.phone-head span { font-size: 0.8rem; color: var(--muted); }
.pick { display: flex; justify-content: space-between; align-items: baseline; border: 1px solid var(--brand); background: var(--soft); border-radius: 8px; padding: 10px 12px; font-size: 0.92rem; }
.pick small { font-family: var(--mono); color: var(--muted); font-size: 0.75rem; }
.slot-label { font-size: 0.82rem; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.slots span { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px 0; }
.slots .off { background: var(--taken); color: var(--muted); text-decoration: line-through; opacity: 0.7; }
.slots .on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.confirm { background: var(--ink); color: var(--paper); text-align: center; border-radius: 8px; padding: 10px; font-family: var(--display); font-size: 0.9rem; }

/* ── Seções ─────────────────────────────── */
section { padding-block: 56px; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 62ch; }
.sec-head p { color: var(--muted); }

/* Jornada: sequência real da consulta */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.journey li { position: relative; padding: 0 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.journey li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand-deep);
  position: relative; z-index: 1;
}
.journey li::after {
  content: ""; position: absolute; top: 16px; left: 34px; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); opacity: 0.5;
}
.journey li:last-child::after { display: none; }
.journey h3 { font-size: 1.02rem; font-weight: 600; margin-top: 6px; }
.journey p { font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* Tour de telas */
.tour { display: flex; flex-direction: column; gap: 72px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.row.flip { grid-template-columns: 7fr 5fr; }
.row.flip > .row-copy { order: 2; }
.row-copy { display: flex; flex-direction: column; gap: 12px; }
.row-copy h3 { font-size: var(--step-1); font-weight: 600; }
.row-copy p { color: var(--muted); }
.row-copy ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.97rem; display: flex; flex-direction: column; gap: 4px; }
.shot {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 18px 44px -26px rgba(10, 60, 110, 0.45); cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; max-width: 100%; }
.shot.tall img { max-height: 620px; object-fit: cover; object-position: top; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row.feature { grid-template-columns: 5fr 7fr; row-gap: 28px; }
.row.feature .shot.wide { grid-column: 1 / -1; justify-self: center; width: min(100%, 860px); }
.shot.wide img { max-height: 420px; object-fit: cover; object-position: top; }
.feature-shots { position: relative; padding-right: 70px; }
.phone-shot {
  position: absolute; right: 0; bottom: -28px; width: 150px; margin: 0; cursor: zoom-in;
  border: 6px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 18px 40px -18px rgba(10, 60, 110, 0.6);
}
.phone-shot img { display: block; width: 100%; height: auto; }
.demo-note { font-size: 0.85rem; color: var(--muted); }

.shot:focus-visible, .phone-shot:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Ampliar imagem */
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(4, 16, 26, 0.86); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.zoom button { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; font: 500 0.9rem var(--body); background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.zoom button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 860px) {
  .row, .row.flip, .row.feature { grid-template-columns: 1fr; gap: 20px; }
  .row.flip > .row-copy { order: 0; }
  .feature-shots { padding-right: 56px; }
  .phone-shot { width: 118px; border-width: 5px; }
  .shot.tall img { max-height: 460px; }
}

/* Equipe */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.role { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.role dt { font-family: var(--display); font-weight: 500; }
.role dd { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Segurança */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust div { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--cyan); }
.trust h3 { font-size: 1.02rem; font-weight: 600; }
.trust p { color: var(--muted); font-size: 0.97rem; }


/* Fechamento */
.close { text-align: left; display: flex; flex-direction: column; gap: 16px; padding-block: 64px 80px; }
.contacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.contacts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.contacts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contacts dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.close .url { font-family: var(--mono); font-size: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; align-self: flex-start; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .phone { justify-self: start; }
  .journey { grid-template-columns: 1fr; gap: 20px; }
  .journey li { padding: 0 0 0 48px; }
  .journey li::before { position: absolute; left: 0; top: 0; }
  .journey li::after { top: 34px; bottom: -20px; left: 16px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), var(--cyan)); }
  .journey h3 { margin-top: 4px; }
  .team, .trust { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .role { grid-template-columns: 1fr; gap: 2px; }
  .top .tag { display: none; }
}

/* iPhone com avisos chegando (aparelho escuro nos dois temas) */
.iphone {
  width: min(100%, 310px); align-self: center; aspect-ratio: 9 / 18.6; padding: 9px;
  background: #11161c; border-radius: 46px; box-shadow: 0 0 0 1px var(--line), 0 26px 60px -28px rgba(10, 60, 110, 0.7);
}
.iphone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 20% 0%, #1c6fb8 0%, transparent 60%), radial-gradient(90% 60% at 100% 45%, #0e8f8a 0%, transparent 65%), #06121c;
  display: flex; flex-direction: column; align-items: center; padding: 46px 10px 22px;
}
.island { position: absolute; top: 11px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 999px; background: #000; }
.home-bar { position: absolute; bottom: 7px; left: 50%; width: 36%; height: 4px; margin-left: -18%; border-radius: 999px; background: rgba(255, 255, 255, 0.75); }
.lock-date { font-family: var(--display); font-size: 0.86rem; font-weight: 500; opacity: 0.85; }
.lock-time { font-family: var(--display); font-weight: 600; font-size: 3.9rem; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ntf-list {
  flex: 1; min-height: 0; width: 100%; margin-top: 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 44px); mask-image: linear-gradient(to bottom, transparent 0, #000 44px);
  transition: opacity 0.5s;
}
.ntf-list.out { opacity: 0; }
.ntf { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(46px) scale(0.94); flex-shrink: 0;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.12); }
.ntf.in { grid-template-rows: 1fr; opacity: 1; transform: none; }
.ntf-clip { min-height: 0; overflow: hidden; }
.ntf-card {
  margin-top: 7px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; padding: 10px 11px;
  border-radius: 19px; background: rgba(226, 238, 246, 0.2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-family: var(--body); font-size: 0.78rem; line-height: 1.28;
}
.ntf-icon { width: 34px; height: 34px; border-radius: 8px; background: #0a1a26 var(--app-icon) center / 74% no-repeat; }
.ntf-text { min-width: 0; }
.ntf-top { display: flex; align-items: baseline; gap: 6px; }
.ntf-top b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-top time { font-size: 0.7rem; opacity: 0.65; white-space: nowrap; }
.ntf-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .ntf, .ntf-list { transition: none; } }

/* ── Demonstrações animadas ─────────────── */
.live {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; line-height: 1.35;
  box-shadow: 0 18px 44px -26px rgba(10, 60, 110, 0.45);
}
.live small { color: var(--muted); font-size: 0.8rem; }
.live-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.live-bar b { font-family: var(--display); font-weight: 500; }
.live-tag, .live-clock { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-clock { font-size: 0.9rem; color: var(--ink); }
.live [data-s], #demo-book [data-s] { transition: opacity 0.35s, transform 0.35s, background-color 0.3s, border-color 0.3s, color 0.3s; }
.ghost { opacity: 0; transform: translateY(6px); }
.btn { font: 500 0.8rem var(--display); background: var(--brand); color: var(--brand-ink); border-radius: 7px; padding: 6px 11px; white-space: nowrap; }
.btn.done { background: var(--ok-ink); color: var(--surface); }
.btn.line { background: transparent; color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--line); }
.tap { position: absolute; z-index: 5; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--brand) 30%, transparent); border: 2px solid var(--brand); animation: tapk 0.65s ease-out forwards; }
@keyframes tapk { 0% { transform: scale(0.3); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--brand); animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Agendamento online → agenda */
.hero-demo { position: relative; justify-self: end; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.pick.idle { border-color: var(--line); background: var(--surface); opacity: 0.6; }
.confirm.done { background: var(--ok-ink); color: var(--surface); }
.agenda-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; }
.am-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.am-row { display: grid; grid-template-columns: 3.2rem 1fr; align-items: center; gap: 8px; min-height: 40px; border-top: 1px solid var(--line); padding-top: 6px; }
.am-row time { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.am-slot { position: relative; min-width: 0; }
.am-free { color: var(--muted); font-size: 0.8rem; }
.am-card { display: block; border-radius: 7px; padding: 5px 9px; background: var(--taken); border-left: 3px solid var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-card.new { background: var(--soft); border-left-color: var(--brand); }
.am-card.new small { color: var(--brand-deep); font-family: var(--mono); font-size: 0.7rem; margin-left: 4px; }
.am-card.ghost { transform: translateY(-10px) scale(0.96); }
.am-slot .am-free { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.am-slot .ghost + .am-free { opacity: 1; }

/* Mapa de medicações */
.med-now { min-height: 54px; display: flex; align-items: center; border-radius: 8px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); }
.med-now.due { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-ink) 35%, transparent); }
.med-now > span { color: var(--muted); }
.med-due { display: flex; align-items: center; gap: 10px; width: 100%; }
.med-due > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.med-due .t { font-family: var(--mono); font-size: 0.82rem; color: var(--warn-ink); font-weight: 500; }
.med-rx { display: flex; flex-direction: column; gap: 6px; }
.med-rx > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.med-slots { display: flex; flex-wrap: wrap; gap: 5px; font-family: var(--mono); font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.med-slots span { border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--muted); }
.med-slots .ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.med-slots .due { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.live-foot { font-size: 0.82rem; color: var(--ok-ink); }

/* PDV */
.pdv-scan { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 38px; background: var(--paper); }
.pdv-bars { width: 26px; height: 16px; flex-shrink: 0; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); }
.pdv-code { font-family: var(--mono); font-size: 0.86rem; min-height: 1.2em; }
.pdv-cart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pdv-cart li, .pdv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.pdv-cart li span { min-width: 0; }
.pdv-cart b, .pdv-total b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdv-total { border-bottom: 0; font-family: var(--display); font-size: 1.05rem; padding-block: 0; }
.pdv-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pdv-pay .btn { margin-left: auto; }
.paychip { font-family: var(--mono); font-size: 0.74rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.pdv-after { display: flex; flex-direction: column; gap: 2px; font-size: 0.84rem; color: var(--muted); border-left: 2px solid var(--cyan); padding-left: 10px; }
.pdv-after b { color: var(--ink); font-weight: 600; }

/* Prontuário */
.badge { font-family: var(--mono); font-size: 0.74rem; border-radius: 999px; padding: 3px 10px; background: var(--ok-bg); color: var(--ok-ink); }
.badge.draft { background: var(--warn-bg); color: var(--warn-ink); }
.rec-vitals { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-vitals span { border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; color: var(--muted); font-size: 0.82rem; }
.rec-vitals b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-field { display: flex; flex-direction: column; gap: 3px; }
.rec-field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rec-field p { min-height: 3.5em; border: 1px solid var(--brand); border-radius: 7px; padding: 6px 9px; background: var(--paper); transition: background-color 0.4s, border-color 0.4s; }
.live.locked .rec-field p { background: var(--taken); border-color: var(--line); }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rec-foot > span:first-child { font-size: 0.82rem; color: var(--muted); min-width: 0; }

/* Troca de tema */
#demo-theme { position: relative; }
.theme-light { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: circle(0% at 87% 4%); transition: clip-path 1s cubic-bezier(0.5, 0, 0.2, 1); }
.theme-light.on { clip-path: circle(150% at 87% 4%); }

@media (max-width: 860px) { .hero-demo { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .tap { display: none; } .theme-light { transition: none; } }

/* Escrita dos títulos e linha do tempo (só quando há animação) */
.js-anim .hero h1, .js-anim .sec-head h2, .js-anim .close h2 { visibility: hidden; }
.ch { visibility: hidden; }
.ch.on { visibility: visible; }
.ch.cur { box-shadow: 2px 0 0 0 var(--brand); }
.js-anim .journey li { opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; transition-delay: calc(var(--i, 0) * 0.55s); }
.js-anim .journey li::after { transform: scaleX(0); transform-origin: left; transition: transform 0.45s linear; transition-delay: calc(var(--i, 0) * 0.55s + 0.3s); }
@media (max-width: 860px) { .js-anim .journey li::after { transform: scaleY(0); transform-origin: top; } }
.js-anim .journey.go li { opacity: 1; transform: none; }
.js-anim .journey.go li::after { transform: none; }
.js-anim .journey.go li::before { animation: stepfill 0.8s ease both; animation-delay: calc(var(--i, 0) * 0.55s + 0.1s); }
@keyframes stepfill {
  0% { transform: scale(0.5); }
  45% { transform: scale(1.18); background: var(--brand); color: var(--brand-ink); }
  100% { transform: scale(1); }
}

/* Cabeçalho e rodapé do site */
.top-cta { text-decoration: none; color: var(--brand-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--surface); }
.top-cta:hover { border-color: var(--brand); }
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; display: grid; grid-template-columns: 1fr 2fr; gap: 28px 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.slogan { color: var(--muted); font-size: 0.95rem; }
.foot-info { margin: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.foot-info dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-info dd { margin: 0; font-size: 0.97rem; }
.foot-info a { text-decoration: none; }
.foot-info a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } .foot-info { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .top .tag.top-cta { display: inline-block; } }

/* ── Site v2: menos texto, mais demonstração ── */
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--brand-deep); }
.nav a.top-cta { color: var(--brand-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta { font: 500 0.95rem var(--display); text-decoration: none; border-radius: 999px; padding: 10px 20px; background: var(--brand-deep); color: var(--surface); }
.cta.ghostbtn { background: transparent; color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--line); }
.cta:hover { filter: brightness(1.08); }
.row { grid-template-columns: 4fr 8fr; }
.row.flip { grid-template-columns: 8fr 4fr; }
.row-copy p { font-size: 1.08rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.shot.thumb { position: relative; }
.shot.thumb img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shot.thumb::after { content: "tela real"; position: absolute; left: 8px; bottom: 8px; font: 500 0.66rem var(--mono); letter-spacing: 0.04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.dif { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dif > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.dif b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.dif span { color: var(--muted); font-size: 0.95rem; }
.dif i { font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--brand-deep); }
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .dif > .reveal:nth-child(3n+2) { transition-delay: 0.1s; }
.js-anim .dif > .reveal:nth-child(3n) { transition-delay: 0.2s; }

/* Painel */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpis > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpis small { font-size: 0.72rem; }
.kpis b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { width: 100%; height: 90px; display: block; }
.spark .ln { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s ease-out; vector-effect: non-scaling-stroke; }
.spark .ln.undrawn { stroke-dashoffset: 1; transition: none; }
.spark .ar { fill: color-mix(in srgb, var(--brand) 14%, transparent); transition: opacity 0.6s; }
.spark .ar.ghost { transform: none; }
.dash-alert { font-size: 0.84rem; border-radius: 8px; padding: 7px 10px; background: var(--warn-bg); color: var(--warn-ink); }

/* Agenda */
.ag-grid { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 40px; gap: 4px 6px; font-size: 0.8rem; }
.ag-grid .h { font-family: var(--display); font-weight: 500; font-size: 0.82rem; align-self: end; padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-grid time { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); align-self: center; }
.ag-grid .free { border: 1px dashed var(--line); border-radius: 7px; }
.ag-card { position: relative; z-index: 1; border-radius: 7px; padding: 4px 8px; background: var(--soft); border-left: 3px solid var(--brand); display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.2; }
.ag-card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-card small { font-size: 0.7rem; }
.ag-card.ok { background: var(--ok-bg); border-left-color: var(--ok-ink); }
.ag-card.now { background: var(--warn-bg); border-left-color: var(--warn-ink); }
.ag-card.lift { z-index: 3; box-shadow: 0 14px 30px -12px rgba(10, 60, 110, 0.55); }
.ag-count { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 0.72rem; }
.ag-count span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.ag-count b { color: var(--ink); }
.toast { font-size: 0.84rem; border-radius: 8px; padding: 7px 10px; background: var(--ok-bg); color: var(--ok-ink); }

/* Importação */
.imp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.imp-sheet { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.imp-sheet caption { text-align: left; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); padding-bottom: 6px; }
.imp-sheet th, .imp-sheet td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; white-space: nowrap; }
.imp-sheet th { background: var(--paper); font-weight: 600; font-size: 0.72rem; }
.imp-sheet tr[data-r] { transition: background-color 0.3s, color 0.3s; }
.imp-sheet tr.sent { background: var(--ok-bg); color: var(--ok-ink); }
.imp-out { display: flex; flex-direction: column; gap: 6px; }
.imp-out > div { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; display: flex; flex-direction: column; font-size: 0.82rem; }
.imp-out small { font-size: 0.74rem; }
.imp-bar { height: 6px; border-radius: 999px; background: var(--taken); overflow: hidden; }
.imp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--cyan)); transition: width 0.6s ease; }
.imp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.imp-foot .live-foot { margin: 0; }

/* Acesso confidencial */
.acc-body { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; transition: filter 0.6s; }
.acc-body.locked { filter: blur(5px); user-select: none; }
.acc-body p span { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; display: block; }
.acc-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.acc-ask .pdv-code { font-family: var(--body); color: var(--muted); }
.acc-admin { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--paper); }
.acc-admin > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.84rem; }
.acc-admin.ghost { transform: translateY(14px); }

/* Evolução e alta */
.evo { width: 100%; height: 100px; display: block; overflow: visible; }
.evo .ln { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 1; transition: stroke-dashoffset 0.7s ease; vector-effect: non-scaling-stroke; }
.evo circle { fill: var(--surface); stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; transition: opacity 0.3s; }
.evo circle.ghost { transform: none; }
.evo text { font: 500 9px var(--mono); fill: var(--muted); transition: opacity 0.3s; }
.evo text.ghost { transform: none; }
.bill { display: flex; flex-direction: column; }
.bill > div { display: flex; justify-content: space-between; gap: 10px; padding-block: 5px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.bill > div:last-child { border-bottom: 0; font-family: var(--display); font-weight: 600; }
.bill b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Estoque */
.stk { display: flex; flex-direction: column; gap: 8px; }
.stk-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem 3.2rem; align-items: center; gap: 10px; font-size: 0.86rem; }
.stk-row span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl { height: 8px; border-radius: 999px; background: var(--taken); overflow: hidden; }
.lvl i { display: block; height: 100%; background: var(--ok-ink); transition: width 0.4s, background-color 0.3s; }
.stk-row.low .lvl i { background: #d9452f; }
.stk-row .qty { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; transition: color 0.3s; }
.stk-row.low .qty { color: #d9452f; font-weight: 600; }
.stk-row small { display: block; }
.stk-ev { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.stk-ev span { font-family: var(--mono); font-size: 0.72rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.sug { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--cyan); padding-left: 10px; font-size: 0.84rem; min-height: 3.2em; }
.sug span { color: var(--muted); }
.sug b { color: var(--ink); }

/* Financeiro */
.fin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fin-tiles > div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.fin-tiles b { font-family: var(--display); font-weight: 600; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-tiles .in b { color: var(--ok-ink); }
.fin-list { display: flex; flex-direction: column; }
.fin-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-block: 7px; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.fin-list > div:last-child { border-bottom: 0; }
.fin-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-list .plus { color: var(--ok-ink); }
.fin-list small { grid-column: 1 / -1; }
.src { font-family: var(--mono); font-size: 0.66rem; border-radius: 999px; padding: 1px 7px; margin-left: 6px; background: var(--soft); color: var(--brand-deep); }
.src.man { background: var(--taken); color: var(--muted); }

/* Suporte */
.support { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; border-radius: 14px; padding: 8px 12px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 2px; }
.bub small { font-family: var(--mono); font-size: 0.68rem; }
.bub.them { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.us { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 4px; }
.sys { align-self: center; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.72rem; color: var(--ok-ink); }
.sys::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-ink); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok-ink) 50%, transparent); animation: live 1.6s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.points { display: flex; flex-wrap: wrap; gap: 8px; }
.points span { font-family: var(--mono); font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: var(--surface); color: var(--muted); }

/* Detalhes técnicos */
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tech-card h3 { font-size: 1.05rem; font-weight: 600; }
.tech-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; display: flex; flex-direction: column; gap: 4px; }
.back { font-family: var(--mono); font-size: 0.85rem; text-decoration: none; }

@media (max-width: 860px) {
  .dif, .tech-grid { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .dif, .tech-grid, .imp { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .fin-tiles b { font-size: 0.9rem; }
  .nav a.opt { display: none; }
  .stk-row { grid-template-columns: minmax(0, 1fr) 4.5rem 2.6rem; }
}
.evo g { transition: opacity 0.3s; } .evo g.ghost { transform: none; }
.row > * { min-width: 0; }
.acc-admin { flex-wrap: wrap; }
.acc-admin > div { flex-basis: 10rem; }
.live-bar { flex-wrap: wrap; }
.live > * { min-width: 0; }
.imp-sheet { table-layout: fixed; }
.imp-sheet th, .imp-sheet td { white-space: normal; overflow-wrap: anywhere; }
.thumbs { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
@media (max-width: 860px) {
  .row, .row.flip, .row.feature { grid-template-columns: 1fr; }
  .row.flip > .row-copy { order: 0; }
}

/* iPhone: nada empurra a página para os lados; duplo toque não dá zoom (pinça continua) */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
html { touch-action: manipulation; overscroll-behavior-x: none; }
.hero-demo, .feature-shots, .stack, .tour, .journey { max-width: 100%; }

/* ── Degradês de fundo ─────────────────── */
:root { --glow: 24%; --glow-soft: 14%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glow: 24%; --glow-soft: 13%; } }
:root[data-theme="dark"] { --glow: 24%; --glow-soft: 13%; }

/* Luz de fundo fixa, atrás de tudo */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -12vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 12% 8%, color-mix(in srgb, var(--brand) var(--glow), transparent), transparent 70%),
    radial-gradient(34vmax 28vmax at 92% 22%, color-mix(in srgb, var(--cyan) var(--glow), transparent), transparent 70%),
    radial-gradient(40vmax 30vmax at 70% 88%, color-mix(in srgb, var(--brand-deep) var(--glow-soft), transparent), transparent 70%),
    radial-gradient(30vmax 26vmax at 6% 70%, color-mix(in srgb, var(--cyan) var(--glow-soft), transparent), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift 28s ease-in-out infinite alternate; }
  @keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3vmax, -2vmax, 0) scale(1.05); } 100% { transform: translate3d(-2vmax, 2vmax, 0) scale(1.02); } }
}

/* Brilho atrás da demonstração do topo */
.hero { position: relative; }
.hero-demo::before {
  content: ""; position: absolute; inset: -8% -10%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) var(--glow), transparent), transparent);
  filter: blur(10px);
}

/* Divisões e superfícies */
section { border-top: 0; position: relative; }
section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 25%, var(--cyan) 75%, transparent); opacity: 0.45;
}
.live, .dif > div, .tech-card, .agenda-mini, .phone {
  background: linear-gradient(160deg, var(--surface) 55%, color-mix(in srgb, var(--surface) 90%, var(--brand)));
}
.dif > div { position: relative; overflow: hidden; }
.dif > div::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.close {
  margin-top: 24px; padding: 40px clamp(20px, 4vw, 48px); border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--cyan) var(--glow), transparent), transparent 70%),
    radial-gradient(60% 120% at 0% 100%, color-mix(in srgb, var(--brand) var(--glow), transparent), transparent 70%),
    var(--surface);
}
.foot { border-top: 0; position: relative; margin-top: 40px; }
.foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), transparent); opacity: 0.45; }
.cta { background: linear-gradient(90deg, var(--brand-deep), color-mix(in srgb, var(--brand-deep) 60%, var(--cyan))); }
.cta.ghostbtn { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.hero-demo { max-width: min(380px, 100%); }
