/* Lupa marketing site. "Paper under a lens": warm receipt paper and a deep teal glass
   on an ink-teal night, with the brand gold as the single spark. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist-latin-wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono-latin-wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040c0c;
  --bg-2: #071313;
  --bg-3: #0b1a1a;
  --line: rgba(160, 222, 224, 0.09);
  --line-2: rgba(160, 222, 224, 0.16);
  --text: #f3f1ec;
  --text-2: #c9d3d1;
  --muted: #8fa3a1;
  --dim: #5d716f;

  --teal-200: #ade6e8;
  --teal-300: #81d5d8;
  --teal-400: #52bec1;
  --teal-500: #19a2a6;
  --teal-600: #048487;
  --teal-700: #02696c;
  --teal-800: #015153;
  --gold: #f3bf1a;
  --gold-300: #fdd87d;
  --green: #55ae71;
  --green-300: #9bddac;
  --amber: #ffb26b;
  --red: #f08a7f;
  --paper: #f6f4f1;
  --paper-2: #ebe8e4;
  --ink: #100e0b;
  --ink-2: #43403b;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --wrap: 1180px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(243, 191, 26, 0.35); color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 12px;
  font-weight: 560; font-size: 15.5px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.btn-sm { --h: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-primary {
  background: var(--gold); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px -8px rgba(243, 191, 26, 0.55);
}
.btn-primary:hover { background: #fdcd4e; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px -10px rgba(243, 191, 26, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035); color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(160, 222, 224, 0.3); transform: translateY(-1px); }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 12, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand img { width: 88px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-signin { padding: 8px 12px; font-size: 14.5px; color: var(--text-2); border-radius: 8px; transition: color .2s, background-color .2s; }
.nav-signin:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0 0 -200px; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(25, 162, 166, 0.22), transparent 70%),
    radial-gradient(30% 22% at 50% 2%, rgba(129, 213, 216, 0.16), transparent 70%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(173, 230, 232, 0.16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 20%, #000 10%, transparent 75%);
}
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 620;
  text-wrap: balance;
}
.hero-title span { display: block; }
.hero-title-2 {
  background: linear-gradient(100deg, var(--teal-300) 0%, var(--teal-200) 40%, var(--gold-300) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero-sub {
  margin-top: 26px; max-width: 620px;
  font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--muted); text-wrap: pretty;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ stage */
.stage {
  position: relative; margin: 64px auto 0; max-width: 1080px;
  border-radius: 24px; padding: 1px;
  background: linear-gradient(180deg, rgba(160, 222, 224, 0.22), rgba(160, 222, 224, 0.05) 40%, rgba(160, 222, 224, 0.02));
}
.stage-glow {
  position: absolute; inset: -60px -40px auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, rgba(25, 162, 166, 0.22), transparent 70%);
  filter: blur(20px);
}
.stage-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 420px) 48px minmax(0, 1fr); align-items: start;
  padding: 44px 40px; border-radius: 23px;
  background:
    linear-gradient(180deg, rgba(11, 26, 26, 0.92), rgba(6, 15, 15, 0.96)),
    var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 120px -40px rgba(0, 0, 0, 0.8);
  min-height: 640px;
}
.stage-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(160, 222, 224, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(160, 222, 224, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%);
  mask-image: linear-gradient(90deg, #000, transparent 45%);
}
.stage-left { position: relative; display: flex; justify-content: center; }
.receipt-wrap { position: relative; width: 100%; max-width: 312px; container-type: inline-size; }
.receipt-wrap.is-nfe { max-width: 420px; }

/* the paper */
.receipt {
  position: relative; width: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #fbfaf7, var(--paper) 60%, #efece7);
  color: #2a2722;
  font-family: var(--mono); font-size: 10.6px; line-height: 1.55; letter-spacing: -0.01em;
  padding: 20px 18px 26px;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 10px 20px -10px rgba(0, 0, 0, 0.5);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  font-variant-numeric: tabular-nums;
  will-change: clip-path;
}
.rc-center { text-align: center; }
.rc-strong { font-weight: 700; color: var(--ink); }
.rc-dim { color: #7a756e; }
.rc-sep { border-top: 1px dashed #b9b4ac; margin: 8px 0; }
.rc-line { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; }
.rc-line > span:first-child { overflow: hidden; text-overflow: ellipsis; padding-right: 2px; }
.rc-item, .rc-block { position: relative; border-radius: 3px; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.rc-item { padding: 1px 0; }
.rc-item.is-on, .rc-block.is-on { background: rgba(25, 162, 166, 0.13); box-shadow: 0 0 0 3px rgba(25, 162, 166, 0.13); }
.rc-item.is-done { background: transparent; box-shadow: none; }
.rc-item.is-done::after {
  content: ''; position: absolute; left: -10px; top: 6px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--teal-600);
}
.rc-total { font-weight: 700; color: var(--ink); font-size: 11.6px; }
.rc-qr { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.rc-qr svg { width: 62px; height: 62px; flex: none; }
.rc-qr svg rect { fill: #24211d; }
.rc-key { font-size: 9.4px; line-height: 1.5; color: #4d4943; word-break: break-all; }

/* the lens: a real magnifier, it shows an enlarged clone of the paper beneath it */
.lens {
  --size: 118px; --x: 150px; --y: 60px;
  position: absolute; left: 0; top: 0; width: var(--size); height: var(--size);
  transform: translate3d(calc(var(--x) - var(--size) / 2), calc(var(--y) - var(--size) / 2), 0);
  pointer-events: none; opacity: 0; z-index: 3;
  transition: opacity .5s var(--ease);
}
.lens.is-on { opacity: 1; }
.lens-glass {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.lens-glass::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(60% 40% at 32% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(closest-side, transparent 70%, rgba(1, 81, 83, 0.18) 100%),
    rgba(25, 162, 166, 0.07);
}
.lens-content { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.lens-content .receipt { box-shadow: none; -webkit-mask: none; mask: none; clip-path: none !important; }
.lens-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 7px solid var(--teal-800);
  box-shadow: inset 0 0 0 1.5px rgba(129, 213, 216, 0.55), 0 0 0 1.5px rgba(129, 213, 216, 0.4), 0 0 40px -6px rgba(25, 162, 166, 0.6);
}
.lens-handle {
  position: absolute; width: 16px; height: 62px; border-radius: 8px;
  left: calc(50% + 0.70 * var(--size) / 2 + 2px); top: calc(50% + 0.70 * var(--size) / 2 - 8px);
  transform-origin: 8px 0; transform: rotate(-45deg);
  background: linear-gradient(90deg, #013d3f, var(--teal-700) 45%, #013537);
  box-shadow: inset 0 0 0 1.5px rgba(129, 213, 216, 0.35), 0 12px 20px -6px rgba(0, 0, 0, 0.6);
}

/* the beam between paper and data */
.stage-beam { position: relative; align-self: stretch; }
.stage-beam span {
  position: absolute; left: 50%; top: 40px; bottom: 40px; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
}
.stage-beam span::after {
  content: ''; position: absolute; left: -2px; width: 5px; height: 48px; top: var(--beam, 10%); border-radius: 4px;
  background: linear-gradient(to bottom, transparent, var(--teal-300), transparent);
  box-shadow: 0 0 16px 2px rgba(129, 213, 216, 0.45);
  transition: top .5s var(--ease), opacity .4s;
  opacity: var(--beam-o, 0);
}

/* the structured result */
.out {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.out.is-leaving { opacity: 0; transform: translateY(6px); }
.out-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
}
.out-key { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 24px; padding: 0 10px; border-radius: 99px;
  font-family: var(--font); font-size: 12px; font-weight: 550; letter-spacing: 0;
  color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: color .3s, background-color .3s, border-color .3s;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-s="reading"], .pill[data-s="checking"] { color: var(--teal-300); background: rgba(25, 162, 166, 0.12); border-color: rgba(82, 190, 193, 0.3); }
.pill[data-s="reading"] i, .pill[data-s="checking"] i { animation: pulse 1.1s ease-in-out infinite; }
.pill[data-s="done"] { color: var(--green-300); background: rgba(85, 174, 113, 0.12); border-color: rgba(85, 174, 113, 0.32); }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.out-merchant { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.out-merchant h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.out-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.out-meta span { white-space: nowrap; }
.out-items { list-style: none; margin: 0; padding: 6px 0; }
.out-item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
  padding: 11px 20px; border-bottom: 1px solid rgba(160, 222, 224, 0.05);
}
.out-item:last-child { border-bottom: 0; }
.out-n { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.out-name { font-size: 14.5px; font-weight: 520; letter-spacing: -0.01em; color: var(--text); min-width: 0; }
.out-raw { display: block; margin-top: 1px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(93, 113, 111, .6); }
.out-price { font-family: var(--mono); font-size: 13px; color: var(--text-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.out-qty { display: block; font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.out-tags { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--text-2); white-space: nowrap;
  background: rgba(160, 222, 224, 0.07); border: 1px solid rgba(160, 222, 224, 0.12);
}
.chip i { font-style: normal; color: var(--dim); }
.chip-brand { color: #ffe9a8; background: rgba(243, 191, 26, 0.12); border-color: rgba(243, 191, 26, 0.28); font-weight: 600; }

.out-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px 18px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 162, 166, 0.04), rgba(25, 162, 166, 0.09));
}
.out-sum { font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.out-sum b { font-weight: 500; color: var(--text-2); font-family: var(--mono); font-size: 12px; }
.out-total { text-align: right; }
.out-total-v { font-size: 28px; font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.out-ok { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 550; color: var(--green-300); }
.out-ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.out-ok svg path { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .5s .15s var(--ease); }
.out-ok.is-in svg path { stroke-dashoffset: 0; }

/* reveal states inside the demo */
[data-o] { opacity: 0; transform: translateY(6px); filter: blur(3px); transition: opacity .55s var(--ease), transform .55s var(--ease-out), filter .55s var(--ease); }
[data-o].is-in { opacity: 1; transform: none; filter: none; }
.sk { display: inline-block; height: 10px; border-radius: 5px; background: rgba(160, 222, 224, 0.08); vertical-align: middle; }

/* ------------------------------------------------------------------ facts */
.facts { padding: 56px 0 24px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 8px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-size: clamp(36px, 4.2vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text), #b8c6c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-label { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 22ch; line-height: 1.45; }

/* --------------------------------------------------------------- sections */
.section { padding: 120px 0 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 610; text-wrap: balance; }
.section-head p, .brands-copy p, .coverage-lead, .api-copy > p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 56ch; text-wrap: pretty; }
h3 { font-size: 19px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.3; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step, .card, .case {
  position: relative; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.step p, .card p, .case p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.step-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--teal-300);
  background: rgba(25, 162, 166, 0.1); border: 1px solid rgba(82, 190, 193, 0.25);
}
.step-art {
  height: 188px; margin: -8px -8px 24px; border-radius: 12px; padding: 20px;
  background: radial-gradient(80% 90% at 50% 0%, rgba(25, 162, 166, 0.12), transparent 70%), rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.keyfield { border-radius: 10px; padding: 10px 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(82, 190, 193, 0.35); box-shadow: 0 0 0 4px rgba(25, 162, 166, 0.08); }
.keyfield-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.keyfield-value { display: block; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--text); min-height: 36px; word-spacing: 2px; }
.caret { display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.keyfield-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 11px; color: var(--dim); }
.keyfield-or::before, .keyfield-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.qr-mini { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.qr-svg { width: 34px; height: 34px; padding: 3px; background: var(--paper); border-radius: 4px; }
.qr-svg rect { fill: #1d1a17; }

.code-mini { margin: 0; font-size: 12px; line-height: 1.7; background: transparent !important; border: 0 !important; padding: 0 !important; }

/* brands */
.section-brands { padding-top: 140px; }
.brands { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.resolve {
  border-radius: 20px; padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
}
.resolve-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) 24px minmax(0, 1.25fr); gap: 16px; align-items: center;
  padding: 16px 16px; border-radius: 12px;
}
.resolve-row + .resolve-row { border-top: 1px solid var(--line); border-radius: 0; }
.resolve-raw {
  font-family: var(--mono); font-size: 12px; color: #3b3732; background: var(--paper); padding: 7px 9px; border-radius: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6);
}
.resolve-arrow { width: 22px; height: 22px; fill: none; stroke: var(--teal-400); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.resolve-out strong { display: block; font-size: 14.5px; font-weight: 560; letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 7px; }
.resolve-row .resolve-arrow, .resolve-row .resolve-out { transition: opacity .6s var(--ease), transform .6s var(--ease-out), filter .6s var(--ease); }
.resolve.is-armed .resolve-row:not(.is-in) .resolve-out { opacity: 0; transform: translateX(-10px); filter: blur(4px); }
.resolve.is-armed .resolve-row:not(.is-in) .resolve-arrow { opacity: 0.2; transform: translateX(-6px); }

/* trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 30px; }
.card h3 { margin-top: 28px; }
.ledger, .statuses {
  border-radius: 12px; padding: 18px 20px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line);
  min-height: 248px;
}
.ledger { font-variant-numeric: tabular-nums; }
.ledger-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); padding: 5px 0; }
.ledger-row span:last-child { font-family: var(--mono); font-size: 13px; }
.ledger-discount { color: var(--muted); }
.ledger-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.ledger-total { font-size: 22px; font-weight: 620; color: var(--text); letter-spacing: -0.02em; }
.ledger-total b { font-weight: inherit; }
.ledger-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--green-300); font-weight: 520; }
.ledger-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.statuses { list-style: none; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.status-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04); }
.status-text { display: grid; }
.status-text b { font-size: 14px; font-weight: 560; }
.status-text small { font-size: 12.5px; color: var(--muted); }
.is-ok .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(85, 174, 113, 0.16); }
.is-wait .status-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 178, 107, 0.14); animation: pulse 1.6s ease-in-out infinite; }
.is-bad .status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(240, 138, 127, 0.14); }

/* coverage */
.coverage { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.tabs { margin-top: 32px; display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.tab {
  border: 0; cursor: pointer; background: transparent; height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 14px; font-weight: 540; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .25s var(--ease), color .25s;
}
.tab span { font-family: var(--mono); font-size: 11.5px; color: var(--dim); transition: color .25s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: rgba(160, 222, 224, 0.1); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line-2); }
.tab[aria-selected="true"] span { color: var(--teal-300); }
.cov-panel { margin-top: 24px; }
.cov-text p { font-size: 15.5px; color: var(--text-2); max-width: 48ch; }
.cov-text .cov-off { margin-top: 14px; color: var(--muted); font-size: 14.5px; display: flex; gap: 10px; align-items: baseline; }
.cov-off .swatch { transform: translateY(2px); }
.legend { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.swatch-on { background: var(--teal-500); box-shadow: 0 0 10px rgba(25, 162, 166, 0.6); }
.swatch-qr { background: var(--gold); box-shadow: 0 0 10px rgba(243, 191, 26, 0.5); }
.swatch-off { background: repeating-linear-gradient(45deg, #1a2a2a 0 2px, #0b1515 2px 4px); border: 1px solid rgba(240, 138, 127, 0.55); }
.cov-foot { margin-top: 20px; font-size: 12.5px; color: var(--dim); }

.map { position: relative; }
.map::before {
  content: ''; position: absolute; inset: 10% 10% 10% 15%; z-index: -1;
  background: radial-gradient(closest-side, rgba(25, 162, 166, 0.2), transparent); filter: blur(30px);
}
.map-svg { width: 100%; height: auto; overflow: visible; }
.uf {
  fill: #0c1c1c; stroke: rgba(160, 222, 224, 0.22); stroke-width: 1.4; stroke-linejoin: round;
  transition: fill .5s var(--ease), stroke .5s var(--ease), filter .5s;
  transition-delay: calc(var(--i) * 28ms);
}
.uf.on { fill: var(--teal-600); stroke: rgba(173, 230, 232, 0.65); }
.uf.on:hover { fill: var(--teal-500); }
.uf.qr { fill: #d9a90f; stroke: rgba(255, 233, 168, 0.85); }
.uf.off { fill: url(#hatch); stroke: rgba(240, 138, 127, 0.75); stroke-width: 1.6; }
.hatch-bg { fill: #0e1a1a; }
.hatch-line { stroke: rgba(240, 138, 127, 0.38); stroke-width: 3; }
.lbls { pointer-events: none; }
.lbl text, text.lbl { font-family: var(--mono); font-size: 19px; font-weight: 560; fill: rgba(243, 241, 236, 0.92); text-anchor: middle; letter-spacing: 0.02em; transition: fill .4s; }
.lbl-out text { text-anchor: start; fill: var(--text-2); }
.lbl-out path { stroke: rgba(160, 222, 224, 0.35); stroke-width: 1.2; fill: none; }
.lbl-out circle { fill: rgba(243, 241, 236, 0.8); }
.lbl.is-off, .lbl-out.is-off text { fill: #ffb4aa; }
.lbl.is-qr { fill: var(--ink); }
.lbl.is-dim, .lbl-out.is-dim text { fill: rgba(143, 163, 161, 0.55); }
.map:not(.is-lit) .uf { fill: #0c1c1c; stroke: rgba(160, 222, 224, 0.16); }

/* api */
.section-api { padding-top: 140px; }
.api { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.deliver { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 6px; }
.deliver li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.deliver li:first-child { border-top: 0; }
.deliver svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--teal-300); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.deliver b { display: block; font-size: 15px; font-weight: 580; }
.deliver span { display: block; font-size: 14.5px; color: var(--muted); }
.codebox {
  border-radius: 18px; overflow: hidden;
  background: #061010; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(160, 222, 224, 0.025);
}
.codebox-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.codetab {
  border: 0; background: transparent; cursor: pointer; padding: 10px 14px 12px; font-size: 13.5px; font-weight: 520; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.codetab:hover { color: var(--text); }
.codetab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.codebox-body { height: 452px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(160, 222, 224, 0.2) transparent; }
.code { margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d7e1df; white-space: pre; tab-size: 2; }
.code-response { border-top: 1px dashed var(--line-2); }
.c-key { color: var(--teal-300); }
.c-str { color: #e8d79a; }
.c-num { color: #f2a97d; }
.c-bool { color: #c6a8ff; }
.c-punc { color: #6f8583; }
.c-cmd { color: var(--gold); font-weight: 600; }
.c-flag { color: var(--teal-300); }
.c-var { color: #c6a8ff; }
.c-meta { color: var(--green-300); }

/* use cases */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case { padding: 26px 24px 28px; transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s; }
.case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.case-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(25, 162, 166, 0.2), rgba(25, 162, 166, 0.06)); border: 1px solid rgba(82, 190, 193, 0.28);
}
.case-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-200); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.case h3 { font-size: 17.5px; }

/* final cta */
.final { position: relative; margin-top: 160px; padding: 120px 0 130px; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.final-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(25, 162, 166, 0.26), transparent 70%),
    radial-gradient(22% 30% at 50% 100%, rgba(243, 191, 26, 0.1), transparent 70%);
}
.final-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(173, 230, 232, 0.14) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 75%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 56px; height: 56px; margin-bottom: 28px; filter: drop-shadow(0 10px 30px rgba(25, 162, 166, 0.5)); }
.final p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 46ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand p { font-size: 14px; color: var(--muted); }
.footer-brand a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.footer-brand a:hover { color: var(--text); text-decoration-color: var(--teal-300); }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* -------------------------------------------------------------- reveal */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .stage-inner { grid-template-columns: minmax(0, 360px) 32px minmax(0, 1fr); padding: 36px 24px; }
  .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .brands, .coverage, .api { grid-template-columns: 1fr; gap: 44px; }
  .coverage .map { max-width: 620px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .step-art { grid-column: 2; grid-row: 1 / 5; margin: 0; }
  .step > :not(.step-art) { grid-column: 1; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero-title { letter-spacing: -0.04em; }
  .hero-sub { margin-top: 20px; font-size: 16.5px; }
  .hero-ctas { margin-top: 28px; width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stage { margin-top: 48px; border-radius: 20px; }
  .stage-glow { inset: -40px 0 auto; }
  .stage-right { position: relative; z-index: 4; margin-top: -20px; }
  .out { background: rgba(9, 22, 22, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 -24px 48px -16px rgba(0, 0, 0, 0.75); }
  .lbl text, text.lbl { font-size: 30px; }
  .lbl-out circle { r: 5px; }
  .code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .codebox-body { height: auto; max-height: 560px; }
  .code-mini { font-size: 10px; }
  .stage-inner { grid-template-columns: 1fr; padding: 22px 14px 16px; border-radius: 19px; min-height: 0; gap: 0; }
  .stage-inner::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 40%); mask-image: linear-gradient(180deg, #000, transparent 40%); }
  .stage-left { padding: 0; }
  .receipt-wrap { max-width: 286px; }
  .receipt { font-size: 9.6px; padding: 16px 14px 20px; }
  .rc-qr svg { width: 50px; height: 50px; }
  .lens { --size: 96px; }
  .stage-beam { display: none; }
  .stage-beam span { top: 4px; bottom: 4px; }
  .stage-beam span::after { display: none; }
  .out-merchant { padding: 14px 14px 12px; }
  .out-merchant h4 { font-size: 16px; }
  .out-item { padding: 10px 14px; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 8px; }
  .out-name { font-size: 13.5px; }
  .out-head { padding: 10px 14px; font-size: 10.5px; }
  .out-foot { padding: 14px; }
  .out-total-v { font-size: 24px; }
  .facts { padding-top: 48px; }
  .facts-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .fact { padding: 0 0 0 18px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact-label { font-size: 13.5px; }
  .section { padding-top: 96px; }
  .section-brands, .section-api { padding-top: 104px; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .brands-copy p, .coverage-lead, .api-copy > p, .final p { font-size: 16.5px; }
  .step { display: block; padding: 20px; }
  .step-art { margin: -4px -4px 22px; height: 172px; }
  .resolve { padding: 4px; }
  .resolve-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 12px; }
  .resolve-arrow { display: none; }
  .resolve-raw { justify-self: start; max-width: 100%; }
  .card { padding: 20px; }
  .ledger, .statuses { padding: 14px; min-height: 0; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; }
  .codebox-body { height: 460px; }
  .code { font-size: 11.5px; padding: 18px; }
  .cases { grid-template-columns: 1fr; gap: 12px; }
  .case { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .case-icon { grid-row: 1 / 3; margin: 0; }
  .case p { margin-top: 4px; }
  .final { margin-top: 112px; padding: 88px 0 96px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav-signin { padding: 8px 6px; }
  .btn-sm { padding: 0 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .caret { display: none; }
}

/* skeletons the demo fills in */
.out-item, .out-merchant { position: relative; }
.out-item::before, .out-item::after, .out-merchant::before, .out-merchant::after {
  content: ''; position: absolute; height: 9px; border-radius: 5px; background: rgba(160, 222, 224, 0.07);
  transition: opacity .35s var(--ease);
}
.out-item::before { left: 56px; top: 17px; width: 48%; }
.out-item::after { left: 56px; top: 36px; width: 26%; }
.out-merchant::before { left: 20px; top: 22px; width: 42%; height: 12px; }
.out-merchant::after { left: 20px; top: 46px; width: 62%; }
.out-item.is-in::before, .out-item.is-in::after, .out-merchant.is-in::before, .out-merchant.is-in::after { opacity: 0; }
@media (max-width: 760px) {
  .out-item::before, .out-item::after { left: 42px; }
  .out-merchant::before, .out-merchant::after { left: 14px; }
}

.out-foot { position: relative; }
.out-foot::before, .out-foot::after {
  content: ''; position: absolute; height: 9px; border-radius: 5px; background: rgba(160, 222, 224, 0.07); transition: opacity .35s var(--ease);
}
.out-foot::before { left: 20px; top: 24px; width: 30%; }
.out-foot::after { right: 20px; top: 22px; width: 22%; height: 22px; border-radius: 7px; }
.out-foot.is-in::before, .out-foot.is-in::after { opacity: 0; }
.lbl-out.is-dim circle { fill: rgba(143, 163, 161, 0.4); }
.lbl-out.is-dim path { stroke: rgba(160, 222, 224, 0.15); }

/* ------------------------------------------------------------ DANFE (NF-e) */
.receipt.danfe {
  font-family: var(--font); letter-spacing: 0; line-height: 1.25;
  font-size: calc(100cqw / 47);
  padding: 1.6em 1.4em 1.8em;
  border-radius: 2px;
  -webkit-mask: none; mask: none;
  background: linear-gradient(180deg, #fdfcfa, var(--paper) 70%, #f0ede8);
  color: #24211d;
}
.danfe .df-stub { display: flex; gap: 0; border: 1px solid #8f8a83; margin-bottom: 0.9em; position: relative; }
.danfe .df-stub::after { content: ''; position: absolute; left: -1.4em; right: -1.4em; bottom: -0.55em; border-bottom: 1px dashed #a9a49c; }
.danfe .df-stub-nf { flex: none; width: 10.5em; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #8f8a83; padding: 0.3em; font-size: 0.85em; }
.danfe .df-stub-nf b { font-size: 1.15em; }
.danfe .df-top { display: grid; grid-template-columns: 1.15fr 0.8fr 1.45fr; border: 1px solid #8f8a83; margin-top: 0.4em; }
.danfe .df-box { padding: 0.55em 0.6em; display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.danfe .df-box + .df-box { border-left: 1px solid #8f8a83; }
.danfe .df-emit b { font-size: 1.05em; line-height: 1.2; margin-bottom: 0.3em; color: var(--ink); }
.danfe .df-emit span { font-size: 0.82em; color: #4d4943; }
.danfe .df-danfe { align-items: center; text-align: center; }
.danfe .df-danfe span { font-size: 0.7em; color: #4d4943; }
.danfe .df-big { font-size: 1.7em; letter-spacing: 0.02em; color: var(--ink); line-height: 1; }
.danfe .df-io { display: block; text-align: left; margin: 0.2em 0; }
.danfe .df-io i { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border: 1px solid #6f6a63; font-style: normal; font-weight: 700; margin-left: 0.4em; color: var(--ink); font-size: 1.2em; }
.danfe .df-danfe b:not(.df-big) { font-size: 0.95em; }
.danfe .df-keybox { justify-content: center; }
.danfe .df-barcode { width: 100%; height: 3.6em; margin-bottom: 0.4em; }
.danfe .df-barcode rect { fill: #1d1a17; }
.danfe .df-key { font-family: var(--mono); font-size: 0.8em; letter-spacing: -0.02em; color: var(--ink); line-height: 1.35; }
.danfe .df-row { display: flex; border: 1px solid #8f8a83; border-top: 0; }
.danfe .df-top + .df-row, .danfe .df-sec + .df-row { border-top: 1px solid #8f8a83; }
.danfe .df-f { padding: 0.3em 0.5em 0.35em; display: flex; flex-direction: column; gap: 0.1em; min-width: 0; }
.danfe .df-f + .df-f { border-left: 1px solid #8f8a83; }
.danfe .df-grow { flex: 1; }
.danfe .df-grow2 { flex: 2; }
.danfe .df-l { font-size: 0.62em; color: #6a655e; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.danfe .df-v { font-size: 0.86em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.danfe .df-num .df-v { font-family: var(--mono); text-align: right; letter-spacing: -0.02em; }
.danfe .df-strong .df-v { font-weight: 700; }
.danfe .df-add .df-v { font-size: 0.78em; }
.danfe .df-sec { margin-top: 0.75em; margin-bottom: 0.25em; font-size: 0.68em; font-weight: 700; letter-spacing: 0; color: #3b3732; }
.danfe .df-table { border: 1px solid #8f8a83; }
.danfe .df-tr {
  display: grid; grid-template-columns: 3.3em minmax(0, 1fr) 5.9em 2.7em 1.9em 2.1em 4.1em 4.6em; gap: 0 0.45em;
  padding: 0.4em 0.5em; font-size: 0.8em; align-items: baseline; white-space: nowrap;
}
.danfe .df-tr > span { overflow: hidden; text-overflow: ellipsis; }
.danfe .df-tr + .df-tr { border-top: 1px solid #d3cec7; }
.danfe .df-th { color: #6a655e; border-bottom: 1px solid #8f8a83; }
.danfe .df-th > span { font-size: 0.75em; }
.danfe .df-th + .df-tr { border-top: 0; }
.danfe .df-n { text-align: right; font-family: var(--mono); letter-spacing: -0.03em; }
.danfe .df-th .df-n { font-family: var(--font); letter-spacing: 0.02em; }
.danfe .df-desc { color: var(--ink); }
.danfe .rc-item { padding: 0.4em 0.5em; border-radius: 0; }
.danfe .rc-item.is-on, .danfe .rc-block.is-on { box-shadow: none; }
.danfe .rc-item.is-done::after { left: 0.1em; top: 50%; width: 0.4em; height: 0.4em; margin-top: -0.2em; }
.danfe .rc-block { border-radius: 0; }

.out-key b { color: var(--teal-300); font-weight: 600; }

/* step 2: what comes back */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2);
}
.checks svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--green-300); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.js .checks li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease-out); }
.js .step.is-in .checks li { opacity: 1; transform: none; }
.js .step.is-in .checks li:nth-child(1) { transition-delay: .5s; }
.js .step.is-in .checks li:nth-child(2) { transition-delay: 1s; }
.js .step.is-in .checks li:nth-child(3) { transition-delay: 1.5s; }

.fact-num small { font-size: 0.5em; letter-spacing: -0.02em; vertical-align: 0.5em; margin-right: 0.08em; }
.footer-credit { margin-top: 18px; font-size: 11.5px; color: var(--dim); }
@media (max-width: 760px) {
  .receipt.danfe { padding: 1.2em 1em 1.4em; }
  .danfe .df-stub::after { left: -1em; right: -1em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .checks li { opacity: 1; transform: none; }
}

h2 .block { display: block; }
.coverage h2 { font-size: clamp(30px, 3.2vw, 40px); }

.c-cmt { color: #6f8583; font-style: italic; }
.out-gtin { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--teal-400); letter-spacing: 0.01em; }
.danfe .df-ean { display: block; font-style: normal; font-family: var(--mono); font-size: 0.82em; color: #6a655e; letter-spacing: -0.01em; margin-top: 0.1em; }
.danfe .df-tr { align-items: start; }

/* ------------------------------------------------- app opening switch
   <body class="app-soon"> while the app is being redesigned (see the comment in index.html).
   Remove the class to bring back the links into the app. */
.app-soon:not(body) { display: none !important; }
body.app-soon .app-live { display: none !important; }
body.app-soon .app-soon { display: revert !important; }
body.app-soon .btn.app-soon { display: inline-flex !important; }
body.app-soon .nav-signin.app-soon { display: inline-block !important; }
body.app-soon .cta-mail {
  order: -1; border: 0; background: var(--gold); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px -8px rgba(243, 191, 26, 0.55);
}
body.app-soon .cta-mail:hover { background: #fdcd4e; }
.btn-soon {
  cursor: default; user-select: none; gap: 10px;
  color: var(--muted); background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(160, 222, 224, 0.22);
}
.btn-soon small {
  font-size: 11px; font-weight: 560; letter-spacing: 0.01em; line-height: 1;
  padding: 4px 7px; border-radius: 6px;
  color: var(--teal-200); background: rgba(25, 162, 166, 0.14); border: 1px solid rgba(82, 190, 193, 0.28);
}
.btn-sm.btn-soon { gap: 8px; padding: 0 10px 0 12px; }
.btn-sm.btn-soon small { font-size: 10.5px; padding: 3px 6px; }
@media (max-width: 760px) {
  body.app-soon .nav-contact.app-soon { display: none !important; }
}
.brand { flex: none; }
@media (max-width: 380px) {
  .btn-sm.btn-soon small { display: none; }
}
