/* ScanPrice — página provisória */
:root {
  --ink: #0b1324;
  --ink-2: #1b2640;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #e2ded2;
  --muted: #5b6475;
  --lime: #c6f135;
  --lime-ink: #2f3d00;
  --green: #138a52;
  --red: #c2412d;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; background: #ebe7da; padding: .1em .4em; border-radius: 6px; }

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

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); }
.btn--ghost { border-color: currentColor; background: transparent; }

/* ---- topo ---- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 238, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.25rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: .95rem; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--ink); }
.topnav .btn { padding: .55em 1em; }
@media (max-width: 720px) { .topnav a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__grid > * { min-width: 0; }
@media (min-width: 920px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } .hero { padding: 96px 0 112px; } }
.eyebrow { font: 500 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1.4em; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- quadro ilustrativo ---- */
.board {
  margin: 0; background: var(--ink); color: #e8ecf5; border-radius: 20px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(11, 19, 36, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 16px; }
.tag { font: 500 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #8a93a8; border: 1px solid #2b3654; padding: .45em .6em; border-radius: 6px; }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.board__rows li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .9rem; }
.who { color: #aeb6c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who.you { color: #fff; font-weight: 600; }
.bar { height: 8px; background: #1c2742; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); background: #4a5779; border-radius: inherit; }
.board__rows li:first-child .bar i { background: #e8ecf5; }
.price { font: 500 .88rem/1 var(--mono); text-align: right; white-space: nowrap; }
.price.best { color: var(--lime); }
.price b { font-weight: 500; font-size: .8em; margin-left: .3em; }
.board__spark { width: 100%; height: 70px; margin-top: 18px; }
.board__spark polyline { fill: none; stroke: var(--lime); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.board__spark polyline.alt { stroke: #4a5779; stroke-dasharray: 4 4; }
.board figcaption { font: 500 .75rem/1 var(--mono); color: #8a93a8; margin-top: 10px; }
@media (max-width: 420px) {
  .board { padding: 18px 16px; }
  .board__rows li { grid-template-columns: 6.6em minmax(0, 1fr) auto; gap: 8px; font-size: .8rem; }
  .price { font-size: .78rem; }
  .price b { display: none; }
}

/* ---- seções ---- */
.section { padding: 72px 0; }
.section--alt { background: #efece2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #e8ecf5; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps__n { display: inline-block; font: 500 .8rem/1 var(--mono); background: var(--lime); color: var(--lime-ink); padding: .45em .6em; border-radius: 6px; margin-bottom: 18px; }
.steps p, .features p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { background: var(--paper); padding: 28px; }

/* ---- acesso ---- */
.access { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .access { grid-template-columns: 1fr 1fr; gap: 56px; } }
.access p { color: var(--muted); }
.access__form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.access__form label { display: block; font-weight: 600; margin-bottom: 10px; }
.access__field { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 18px; background: #fff; transition: border-color .15s; }
.access__field:focus-within { border-color: var(--ink); }
.access__prefix { font: 500 .85rem/1 var(--mono); color: var(--muted); white-space: nowrap; }
.access__field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1rem/1.4 var(--mono); padding: 8px 0; background: transparent; color: var(--ink); }
.access__field input:focus-visible { outline: 0; }
.access__help { font-size: .85rem; margin: 10px 0 0 4px; color: var(--muted); }
.access__form.is-invalid .access__field { border-color: var(--red); }
.access__form.is-invalid .access__help { color: var(--red); }
@media (max-width: 480px) { .access__prefix { display: none; } }

/* ---- contato ---- */
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact p { color: #aeb6c8; max-width: 32em; }
.contact__links { display: grid; gap: 14px; }
.contact__card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid #26314d; border-radius: var(--radius); text-decoration: none; transition: border-color .15s, background-color .15s; }
.contact__card:hover { border-color: var(--lime); background: #111b31; }
.contact__label { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #8a93a8; }
.contact__value { font: 700 1.25rem/1.2 var(--display); color: #fff; word-break: break-word; }

/* ---- rodapé ---- */
.footer { background: var(--ink); color: #8a93a8; border-top: 1px solid #1c2742; font-size: .85rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.footer__admin { font-size: .75rem; color: #5f6a83; text-decoration: none; }
.footer__admin:hover { color: #aeb6c8; text-decoration: underline; }

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

/* itens de grid podem encolher (evita rolagem horizontal no celular) */
.access > *, .contact > *, .steps > *, .features > * { min-width: 0; }
.access__field input { width: 100%; }
