/* Devskin Marketplace — landing ERP (mobile-first) */
:root {
  --ink: #0b1220;
  --ink-2: #273244;
  --muted: #556070;
  --line: #e4e7ec;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --soft: #f5f7f6;
  --brand: #16a34a;
  --brand-d: #15803d;
  --brand-dd: #14532d;
  --brand-l: #22c55e;
  --brand-50: #ecfdf3;
  --brand-100: #d1fadf;
  --dark: #06130c;
  --ml: #ffe600; --ml-ink: #2d3277;
  --sh: #ee4d2d;
  --tt: #111111;
  --az: #232f3e; --az-acc: #ff9900;
  --api: #475569;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow: 0 12px 32px -8px rgba(16,24,40,.16), 0 4px 8px -4px rgba(16,24,40,.06);
  --shadow-lg: 0 40px 80px -24px rgba(6,19,12,.35), 0 12px 24px -12px rgba(6,19,12,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-d); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-l); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(22,163,74,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c9ced6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b2436; }
.btn-white { background: #fff; color: var(--brand-dd); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-wpp { background: #128c4a; color: #fff; }
.btn-wpp:hover { background: #0f7a40; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px -12px rgba(16,24,40,.25); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--brand-d); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav-links {
  display: none;
  position: absolute; top: 64px; left: 0; right: 0;
  flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px; box-shadow: 0 16px 24px -16px rgba(16,24,40,.2);
}
.nav-links.open { display: flex; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 17px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.nav-links a:last-child { border-bottom: 0; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-login { display: none; color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 12px; }
.link-login:hover { color: var(--ink); }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav-links { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; box-shadow: none; gap: 4px; margin-left: 24px; }
  .nav-links a { font-size: 15px; padding: 8px 12px; border: 0; border-radius: 8px; }
  .nav-links a:hover { background: var(--soft); color: var(--ink); }
  .nav-only-mobile { display: none; }
  .link-login { display: inline-block; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; background: linear-gradient(180deg, #f3faf5 0%, #fff 70%); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -160px; background: radial-gradient(circle, rgba(34,197,94,.20), transparent 62%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--brand-dd); background: #fff; border: 1px solid var(--brand-100); padding: 6px 14px 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-l); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(34px, 8.6vw, 60px); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 18px; line-height: 1.06; }
.hl { background: linear-gradient(90deg, var(--brand-d), #059669); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.cta-row.center { align-items: stretch; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row.center { justify-content: center; }
}
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
}

/* ---------- Mock app ---------- */
.hero-visual { position: relative; padding-bottom: 128px; }
@media (min-width: 1024px) { .hero-visual { padding: 0 0 72px; } }
.app { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.35; }
.app-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #f8f9fb; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ea; }
.dots i:nth-child(1) { background: #ff6159; } .dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #28c941; }
.url { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: #6b7280; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { display: flex; }
.app-side { display: none; flex-direction: column; gap: 2px; width: 138px; flex: none; padding: 14px 10px; border-right: 1px solid var(--line); background: #fbfcfc; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #4b5563; font-weight: 600; }
.side-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-item.on { background: var(--brand-50); color: var(--brand-dd); }
@media (min-width: 640px) { .app-side { display: flex; } }
.app-main { flex: 1; min-width: 0; padding: 14px; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.app-head strong { font-size: 17px; letter-spacing: -0.02em; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--brand-dd); background: var(--brand-50); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-l); animation: pulse 2s infinite; }

.chips { display: flex; gap: 6px; overflow: hidden; margin-bottom: 10px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #4b5563; background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ch-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.ch-dot.ml { background: var(--ml); box-shadow: inset 0 0 0 1px rgba(45,50,119,.35); }
.ch-dot.sh { background: var(--sh); }
.ch-dot.tt { background: var(--tt); box-shadow: 1.5px 0 0 #25f4ee, -1.5px 0 0 #fe2c55; }
.ch-dot.az { background: var(--az-acc); }
.ch-dot.st { background: var(--brand); }

/* channel badges */
.ch { display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: .01em; border-radius: 6px; padding: 3px 7px; white-space: nowrap; line-height: 1.2; }
.ch.ml { background: var(--ml); color: var(--ml-ink); }
.ch.sh { background: var(--sh); color: #fff; }
.ch.tt { background: var(--tt); color: #fff; box-shadow: inset 2px 0 0 #25f4ee, inset -2px 0 0 #fe2c55; }
.ch.az { background: var(--az); color: #fff; box-shadow: inset 0 -2px 0 var(--az-acc); }
.ch.st { background: var(--brand-50); color: var(--brand-dd); box-shadow: inset 0 0 0 1px var(--brand-100); }

.orders { position: relative; display: flex; flex-direction: column; }
.order {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px;
  padding: 9px 8px; border-radius: 10px; border-bottom: 1px solid var(--line-2);
  transition: background .3s;
}
.order .ch { justify-self: start; }
.order .pill { grid-column: 2; grid-row: 2; justify-self: start; }
.order .o-val { grid-column: 3; grid-row: 1 / span 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.order.sel { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); border-bottom-color: transparent; }
.o-id { display: flex; flex-direction: column; min-width: 0; }
.o-id b { font-weight: 700; }
.o-id small { color: #6b7280; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 480px) {
  .order { grid-template-columns: 62px minmax(0, 1fr) auto 72px; }
  .order .pill { grid-column: 3; grid-row: 1; justify-self: end; }
  .order .o-val { grid-column: 4; grid-row: 1; text-align: right; }
}
.order.enter { animation: slideIn .6s cubic-bezier(.2,.8,.2,1) both; }
.order.enter .ch { animation: flash 1.6s ease .2s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(.98); background: #dcfce7; } to { opacity: 1; transform: none; } }
@keyframes flash { 0%, 100% { transform: none; } 30% { transform: scale(1.12); } }
.order.leave { animation: fadeOut .35s ease both; }
@keyframes fadeOut { to { opacity: 0; transform: translateY(6px); } }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.pay { background: #eff6ff; color: #1d4ed8; }
.pill.nf { background: #f5f3ff; color: #6d28d9; }
.pill.lbl { background: #fff7ed; color: #b45309; }
.pill.go { background: #ecfeff; color: #0e7490; }
.pill.ok { background: var(--brand-50); color: var(--brand-dd); }
.pill.new { background: #dcfce7; color: var(--brand-dd); }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sel-info { flex: 1 1 100%; font-size: 12px; color: #6b7280; }
.app-actions .btn-ui { flex: 1 1 0; justify-content: center; }
@media (min-width: 480px) { .app-actions .btn-ui { flex: 0 0 auto; } }
.sel-info b { color: var(--ink); }
.btn-ui { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; box-shadow: var(--shadow-sm); }
.btn-ui svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ui-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-ui-ghost { box-shadow: none; color: #b42318; border-color: #fecdca; }
.btn-ui-sm { padding: 5px 10px; font-size: 11.5px; }
.app-actions .btn-ui-dark.press { animation: press .5s ease; }
@keyframes press { 40% { transform: scale(.94); box-shadow: 0 0 0 6px rgba(22,163,74,.2); } }

/* floating cards */
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; }
.stock { left: 8px; bottom: 0; width: 236px; padding: 12px 14px; }
.app-main { padding-bottom: 18px; }
.stock-top { display: flex; align-items: center; gap: 10px; }
.thumb { width: 34px; height: 34px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #1f2937, #4b5563); position: relative; }
.thumb::after { content: ""; position: absolute; left: 9px; right: 9px; top: 8px; height: 6px; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.25); }
.stock-top b { display: block; font-size: 12.5px; }
.stock-top small { color: #6b7280; font-size: 11.5px; }
.stock-num { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 6px; }
.stock-num span { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: inline-block; }
.stock-num small { color: #6b7280; font-weight: 600; }
.stock-num span.tick { animation: tick .6s ease; color: var(--sh); }
@keyframes tick { 0% { transform: translateY(-8px); opacity: .2; } 100% { transform: none; opacity: 1; } }
.stock-chs { display: flex; gap: 6px; }
.stock-chs span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; background: var(--soft); font-weight: 700; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.stock-chs i { font-style: normal; }
.stock-chs i.tick { animation: tick .5s ease; color: var(--sh); }
.toast { right: 8px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.toast.show { opacity: 1; transform: none; }
.toast b { display: block; font-size: 13px; }
.toast small { color: #6b7280; font-size: 11.5px; }
.toast-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.toast-ic svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) {
  .toast { right: 8px; bottom: 150px; }
  .stock { width: 220px; }
}
@media (min-width: 1024px) {
  .stock { left: -40px; bottom: 0; }
  .toast { right: -24px; bottom: 36px; }
}

/* ---------- Channels strip ---------- */
.channels { padding: 36px 0 44px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; }
.channels-t { font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; letter-spacing: 0; text-transform: none; margin-bottom: 20px; }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logos li:last-child { grid-column: 1 / -1; justify-self: center; }
@media (min-width: 720px) { .logos { display: flex; flex-wrap: wrap; justify-content: center; } }
.logo-b { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.lg-mark { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.b-ml .lg-mark { background: var(--ml); color: var(--ml-ink); }
.b-sh .lg-mark { background: var(--sh); color: #fff; }
.b-az .lg-mark { background: var(--az); color: var(--az-acc); font-size: 17px; }
.b-tt .lg-mark { background: var(--tt); color: #fff; text-shadow: 1px 0 #fe2c55, -1px 0 #25f4ee; }
.b-st .lg-mark { background: var(--brand); color: #fff; }
.b-api .lg-mark { background: #e2e8f0; color: var(--api); font-size: 11px; }
.b-me .lg-mark { background: #e0f2fe; color: #0369a1; }
.fine { text-align: center; font-size: 13px; color: #6b7280; margin-top: 16px; }

/* ---------- Generic sections ---------- */
.sec { padding: 72px 0; }
.sec-soft { background: var(--soft); }
@media (min-width: 1024px) { .sec { padding: 112px 0; } }
.sec-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; color: var(--brand-d); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.sec-head h2, .guide-copy h2 { font-size: clamp(28px, 6.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.sec-sub { margin-top: 14px; font-size: 18px; color: var(--muted); }
.sec-sub.left { text-align: left; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 64px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; font-size: 14px; line-height: 1.35; }

/* steps */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
.step-n { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand-dd); background: var(--brand-50); border: 1px solid var(--brand-100); }
.step h3 { font-size: 21px; margin: 18px 0 8px; }
.step p { color: var(--muted); }
.step-ill { min-height: 96px; display: flex; flex-wrap: wrap; align-content: center; align-items: center; gap: 8px; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, var(--soft), #fff); border: 1px dashed var(--line); padding-right: 56px; }
.step-ill .ch { font-size: 12px; padding: 5px 9px; }
.mini-order { display: flex; align-items: center; gap: 8px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 13px; box-shadow: var(--shadow-sm); }
.mini-order em { margin-left: auto; font-style: normal; color: #6b7280; font-size: 12px; }
.mini-order.m2 { opacity: .7; }
.step-ill .btn-ui { font-size: 13px; }

/* pillars */
.pillar { display: grid; gap: 28px; align-items: center; padding: 8px 0 56px; }
.pillar:last-child { padding-bottom: 0; }
@media (min-width: 960px) {
  .pillar { grid-template-columns: 1fr 1fr; gap: 72px; padding-bottom: 104px; }
  .pillar.rev .pillar-copy { order: 2; }
}
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.tag-1 { background: #eff6ff; color: #1d4ed8; }
.tag-2 { background: #fff7ed; color: #b45309; }
.tag-3 { background: #f5f3ff; color: #6d28d9; }
.tag-4 { background: #ecfeff; color: #0e7490; }
.pillar h3 { font-size: clamp(25px, 5.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 12px; }
.pillar-copy > p { color: var(--muted); font-size: 18px; }
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border: 1px solid var(--brand-100); }
.pillar-ui { position: relative; }
.pillar-ui::before { content: ""; position: absolute; inset: 8% 4% -6% 4%; border-radius: 28px; background: radial-gradient(ellipse at center, rgba(34,197,94,.18), transparent 70%); filter: blur(10px); z-index: 0; }
.pillar-ui .card { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ui-head b { font-size: 16px; letter-spacing: -0.01em; }
.ui-search { font-size: 12px; color: #9ca3af; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ui-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.ui-foot { padding-top: 12px; }

.var-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.var { flex: 1; font-weight: 600; }
.qty-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty-ctl i { font-style: normal; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); background: var(--soft); }
.qty-ctl b { min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge.warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge.zero { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.hist { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.hist > small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; }
.hist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-top: 8px; font-size: 13px; }
.neg { color: #b42318; } .pos { color: var(--brand-d); }

.env { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--soft); }
.env-o { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 7px; color: #6b7280; }
.env-o.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nfe-doc { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.nfe-l { background: #fff; padding: 10px 12px; }
.nfe-l small { display: block; font-size: 11px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.nfe-l b { font-variant-numeric: tabular-nums; }
.nfe-status { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.nfe-status b { display: block; color: var(--brand-dd); }
.nfe-status small { color: var(--brand-dd); opacity: .85; font-size: 12px; }
.nfe-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.kanban { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.col { background: var(--soft); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 108px; }
.col > small { font-size: 11px; font-weight: 800; color: #4b5563; text-transform: uppercase; letter-spacing: .04em; padding: 2px 2px 4px; }
.kc { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.kc.done { opacity: .75; }

/* ---------- Journey (dark) ---------- */
.journey { position: relative; padding: 72px 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,.22), transparent 70%), var(--dark); color: #e6efe9; overflow: hidden; }
@media (min-width: 1024px) { .journey { padding: 112px 0; } }
.sec-head.on-dark h2 { color: #fff; }
.sec-head.on-dark .kicker { color: #4ade80; }
.sec-head.on-dark .sec-sub { color: #a7b8ad; }
.flow { position: relative; display: grid; gap: 12px; max-width: 1040px; margin: 0 auto; }
.fl { position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .5s, border-color .5s, transform .5s; }
.fl-ic { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .5s, box-shadow .5s; }
.fl-ic svg { width: 24px; height: 24px; fill: none; stroke: #a7b8ad; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.fl b { color: #fff; font-size: 17px; }
.fl small { color: #a7b8ad; font-size: 14px; }
.fl.on { background: rgba(34,197,94,.10); border-color: rgba(74,222,128,.35); }
.fl.on .fl-ic { background: var(--brand); border-color: var(--brand-l); box-shadow: 0 0 0 6px rgba(34,197,94,.15), 0 10px 30px -6px rgba(34,197,94,.6); }
.fl.on .fl-ic svg { stroke: #fff; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 44px; height: 2px; background: rgba(255,255,255,.12); }
  .flow::after { content: ""; position: absolute; left: 10%; top: 44px; height: 2px; width: calc(var(--p, 0) * 80%); background: linear-gradient(90deg, var(--brand-l), #86efac); transition: width .9s ease; box-shadow: 0 0 12px rgba(74,222,128,.7); }
  .fl { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; justify-items: center; background: transparent; border-color: transparent; padding: 10px 6px; row-gap: 6px; z-index: 1; }
  .fl.on { background: transparent; border-color: transparent; }
  .fl-ic { grid-row: auto; width: 68px; height: 68px; border-radius: 20px; background: #0d1f15; margin-bottom: 10px; }
  .fl-ic svg { width: 28px; height: 28px; }
}

/* ---------- Loja features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.feat-grid li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feat-grid li:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.fi { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-d); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.feat-grid b { font-size: 16px; line-height: 1.3; }
.feat-grid small { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Paths ---------- */
.paths { display: grid; gap: 16px; }
@media (min-width: 900px) { .paths { grid-template-columns: 1fr 1fr; gap: 24px; } }
.path { position: relative; border-radius: 24px; padding: 28px 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 768px) { .path { padding: 40px; } }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.path-a::before { background: linear-gradient(90deg, var(--ml), var(--sh), var(--tt), var(--az-acc), var(--brand)); }
.path-b::before { background: var(--ink); }
.path-tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.path h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 18px 0 6px; }
.path > p { color: var(--muted); font-size: 18px; }
.path .ticks { margin-bottom: 28px; }
.path .btn { margin-top: auto; white-space: normal; text-align: center; }

/* ---------- Guide ---------- */
.guide { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .guide { grid-template-columns: 1fr 1fr; gap: 72px; } }
.guide-copy .btn { margin-top: 28px; }
.checklist { max-width: 480px; width: 100%; margin: 0 auto; padding: 20px; font-size: 15px; }
.prog-t { font-size: 13px; font-weight: 700; color: var(--brand-dd); }
.prog { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 12px; }
.prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-l)); }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink-2); flex-wrap: wrap; }
.checklist li:last-child { border-bottom: 0; }
.cl-t { flex: 1; min-width: 0; }
.checklist li { flex-wrap: nowrap; }
.cb { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #cfd4dc; flex: none; }
.checklist li.done { color: #6b7280; text-decoration: line-through; text-decoration-color: #c4c9d1; }
.checklist li.done .cb { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--brand); }
.checklist li.now { background: var(--brand-50); border-radius: 12px; padding: 12px; color: var(--ink); border-bottom-color: transparent; }
.checklist li.now .cb { border-color: var(--brand); }
.checklist em { flex: none; margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 999px; }

/* ---------- Compare / why ---------- */
.compare { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; gap: 0; } }
.cmp { border-radius: 22px; padding: 26px 22px; }
@media (min-width: 768px) { .cmp { padding: 36px; } }
.cmp h3 { font-size: 20px; margin-bottom: 16px; }
.cmp ul { display: grid; gap: 12px; }
.cmp li { position: relative; padding-left: 32px; }
.cmp li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 14px; }
.cmp-old { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.cmp-old h3 { color: var(--muted); }
.cmp-old li::before { background-color: #f2f4f7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cmp-new { background: var(--ink); color: #e6efe9; box-shadow: var(--shadow-lg); }
.cmp-new h3 { color: #fff; }
.cmp-new li::before { background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (min-width: 768px) {
  .cmp-old { border-radius: 22px 0 0 22px; border-right: 0; margin: 24px 0; }
  .cmp-new { border-radius: 22px; }
}
.why { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; } }
.why li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.why-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); display: inline-flex; align-items: center; justify-content: center; }
.why-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why b { font-size: 17px; }
.why small { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%230b1220' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-50); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(135deg, #15803d 0%, #16a34a 45%, #059669 100%); color: #fff; text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
.final-in { position: relative; max-width: 820px; }
.final h2 { color: #fff; font-size: clamp(28px, 6.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.final p { margin-top: 14px; font-size: 18px; color: #e6f7ec; }
.final .cta-row { justify-content: center; }
@media (min-width: 1024px) { .final { padding: 104px 0; } }

/* ---------- Footer ---------- */
.foot { background: #0b1220; color: #a9b3c1; padding: 56px 0 0; font-size: 15px; }
.foot a { color: #d6dce5; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-in { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.2fr 2fr; } }
.foot .brand-name { color: #fff; }
.foot .brand-name small { color: #4ade80; }
.foot-brand p { margin-top: 14px; max-width: 340px; }
.foot-brand p a { text-decoration: underline; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.foot li a { display: inline-block; padding: 6px 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; padding-bottom: 96px; font-size: 14px; }
@media (min-width: 768px) { .foot-bottom { padding-bottom: 24px; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .toast { opacity: 1; transform: none; }
}
