/* ── Tokens ─────────────────────────────────────────────────────────── */
  :root, [data-theme="dark"] {
    --bg:        #07080d;
    --bg-2:      #0b0d15;
    --surface:   #0f121c;
    --surface-2: #141826;
    --line:      rgba(255,255,255,.08);
    --line-2:    rgba(255,255,255,.14);
    --ink:       #eef0f6;
    --ink-2:     #c9cdda;
    --ink-3:     #8a90a3;
    --ink-4:     #5b6072;
    --indigo:    #5b6cff;
    --indigo-2:  #8794ff;
    --indigo-glow: rgba(91,108,255,.35);
    --emerald:   #34d399;
    --emerald-2: #6ee7b7;
    --emerald-glow: rgba(52,211,153,.22);
    --amber:     #f5b754;
    --rose:      #f87171;
    --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 30px 80px -30px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.04) inset;
  }
  [data-theme="light"] {
    --bg:        #f6f7fb;
    --bg-2:      #ffffff;
    --surface:   #ffffff;
    --surface-2: #f1f3fa;
    --line:      rgba(15,18,28,.08);
    --line-2:    rgba(15,18,28,.14);
    --ink:       #0b0d15;
    --ink-2:     #2c3145;
    --ink-3:     #5b6072;
    --ink-4:     #8a90a3;
    --indigo:    #4051e0;
    --indigo-2:  #5b6cff;
    --indigo-glow: rgba(64,81,224,.18);
    --emerald:   #059669;
    --emerald-2: #10b981;
    --emerald-glow: rgba(5,150,105,.16);
    --amber:     #b45309;
    --rose:      #dc2626;
    --shadow-1: 0 1px 0 rgba(255,255,255,.6) inset, 0 1px 2px rgba(15,18,28,.06);
    --shadow-2: 0 30px 80px -30px rgba(15,18,28,.25), 0 1px 0 rgba(255,255,255,.6) inset;
  }

  /* density */
  [data-density="compact"]  { --pad-y: 56px;  --pad-y-lg: 88px;  --gap: 14px; --hero-py: 80px; }
  [data-density="regular"]  { --pad-y: 80px;  --pad-y-lg: 128px; --gap: 18px; --hero-py: 120px; }
  [data-density="spacious"] { --pad-y: 120px; --pad-y-lg: 176px; --gap: 24px; --hero-py: 160px; }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-feature-settings: "ss01","cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    letter-spacing: -0.005em;
    overflow-x: hidden;
  }
  ::selection { background: var(--indigo); color: white; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
  .mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: "zero"; }
  .serif-it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

  /* ── Top nav ────────────────────────────────────────────────────────── */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; max-width: 1180px; margin: 0 auto; padding: 0 28px;
  }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
  .brand-mark {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(180deg, #1a2040, #0c1027);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    box-shadow: 0 0 0 1px rgba(91,108,255,.2), 0 6px 18px -6px var(--indigo-glow);
  }
  .brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
  .brand-name b { font-weight: 700; }
  .brand-name span { color: var(--emerald); }
  .nav-links { display: flex; align-items: center; gap: 26px; }
  .nav-links a {
    color: var(--ink-3); text-decoration: none; font-size: 14px;
    transition: color .15s;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta { display: flex; align-items: center; gap: 10px; }
  .nav-login {
    color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 8px 12px; border-radius: 8px;
    transition: color .15s, background .15s;
  }
  .nav-login:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  @media (max-width: 540px) { .nav-login { display: none; } }

  /* ── Buttons ────────────────────────────────────────────────────────── */
  .btn {
    appearance: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 14.5px; font-weight: 500;
    letter-spacing: -0.005em;
    padding: 11px 18px; border-radius: 10px;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    text-decoration: none;
  }
  .btn-primary {
    background: var(--ink); color: var(--bg);
    box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px -6px rgba(0,0,0,.5);
  }
  [data-theme="dark"] .btn-primary { background: linear-gradient(180deg, #fff, #d6daea); color: #07080d; }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-emerald {
    background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
    color: #052e1d;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset,
                0 10px 30px -10px var(--emerald-glow),
                0 0 0 1px rgba(52,211,153,.25);
  }
  .btn-emerald:hover { transform: translateY(-1px); filter: brightness(1.05); }
  .btn-ghost {
    background: transparent; color: var(--ink-2);
    border: 1px solid var(--line-2);
  }
  .btn-ghost:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
  .btn .arr { transition: transform .15s ease; }
  .btn:hover .arr { transform: translateX(2px); }
  .icon-btn {
    appearance: none; cursor: pointer; border: 1px solid var(--line-2);
    background: var(--surface); color: var(--ink-2);
    width: 36px; height: 36px; border-radius: 9px;
    display: inline-grid; place-items: center;
    transition: color .15s, border-color .15s, background .15s;
  }
  .icon-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }

  /* ── Hero ───────────────────────────────────────────────────────────── */
  .hero { position: relative; padding: var(--hero-py) 0 var(--pad-y-lg); overflow: hidden; }
  .hero-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    mask-image: radial-gradient(900px 600px at 70% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(900px 600px at 70% 0%, #000 0%, transparent 70%);
  }
  .hero-glow-1, .hero-glow-2 {
    position: absolute; pointer-events: none; z-index: 0;
    width: 900px; height: 900px; border-radius: 50%;
    filter: blur(120px); opacity: .55;
  }
  .hero-glow-1 { top: -400px; right: -250px; background: radial-gradient(closest-side, var(--indigo-glow), transparent 70%); }
  .hero-glow-2 { top: 100px; left: -300px; background: radial-gradient(closest-side, var(--emerald-glow), transparent 70%); opacity: .35; }
  [data-theme="light"] .hero-glow-1 { opacity: .8; }
  [data-theme="light"] .hero-glow-2 { opacity: .5; }

  .hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
  }
  @media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 8px; border-radius: 999px;
    border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    color: var(--ink-2); font-size: 12.5px; font-weight: 500;
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 25%, transparent);
  }
  .eyebrow .pill {
    padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
    background: color-mix(in srgb, var(--emerald) 18%, transparent);
    color: var(--emerald-2); letter-spacing: 0.02em; text-transform: uppercase;
    font-weight: 600;
  }

  .h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 5.4vw, 64px);
    line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
    color: var(--ink);
  }
  .h1 .em { color: var(--emerald-2); }
  .h1 .strike { position: relative; white-space: nowrap; }
  .h1 .strike::after {
    content: ""; position: absolute; left: -2%; right: -2%; top: 56%; height: 0.08em;
    background: var(--rose); transform: rotate(-3deg);
    box-shadow: 0 0 20px var(--rose);
  }

  .lede {
    font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px;
    line-height: 1.55;
  }
  .lede b { color: var(--ink); font-weight: 600; }
  .cert-required {
    max-width: 560px; margin: -10px 0 24px; padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--emerald) 32%, transparent);
    border-radius: 10px; background: color-mix(in srgb, var(--emerald) 8%, transparent);
    color: var(--ink-2); font-size: 14px; line-height: 1.5;
  }
  .cert-required b { color: var(--ink); }

  .hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .hero-trust {
    margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    color: var(--ink-3); font-size: 13px;
  }
  .hero-trust .item { display: inline-flex; align-items: center; gap: 8px; }
  .hero-trust svg { color: var(--emerald); }

  /* ── Hero mockup (product window) ───────────────────────────────────── */
  .mockup-stack { position: relative; perspective: 2000px; }
  .mockup {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(3deg);
    transform-style: preserve-3d;
  }
  @media (max-width: 980px) { .mockup { transform: none; } }
  .mockup-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  }
  .mockup-dots { display: inline-flex; gap: 6px; }
  .mockup-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: inline-block; }
  .mockup-url {
    flex: 1; font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 12px; color: var(--ink-3);
    background: var(--bg-2); border: 1px solid var(--line);
    border-radius: 7px; padding: 5px 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .mockup-url svg { color: var(--emerald); }

  .mockup-body { padding: 22px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; min-height: 360px; }
  @media (max-width: 540px) { .mockup-body { grid-template-columns: 1fr; } }
  .mockup-side {
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
    padding: 14px; display: flex; flex-direction: column; gap: 10px;
  }
  .side-title { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
  .side-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 8px; font-size: 13px; color: var(--ink-2);
  }
  .side-item.active { background: color-mix(in srgb, var(--indigo) 15%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--indigo) 30%, transparent); }
  .side-item .ico { width: 14px; height: 14px; color: var(--ink-3); }
  .side-item.active .ico { color: var(--indigo-2); }

  .mockup-main { display: flex; flex-direction: column; gap: 14px; }
  .doc-card {
    border: 1px dashed var(--line-2); border-radius: 10px; padding: 18px;
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 40%, transparent), transparent);
  }
  .doc-thumb {
    width: 56px; height: 72px; border-radius: 6px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    display: grid; place-items: center; color: var(--rose);
    font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 600;
    position: relative;
  }
  .doc-thumb::before { content: ""; position: absolute; inset: 8px 8px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .doc-thumb span { position: absolute; bottom: 8px; }
  .doc-meta { flex: 1; min-width: 0; }
  .doc-meta h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .doc-meta p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
  .doc-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 500;
    background: color-mix(in srgb, var(--emerald) 14%, transparent);
    color: var(--emerald-2);
    border: 1px solid color-mix(in srgb, var(--emerald) 25%, transparent);
  }
  .doc-status .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
    box-shadow: 0 0 0 0 var(--emerald-glow); animation: pulse 1.6s infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--emerald-glow); }
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  .cert-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .cert-card {
    border: 1px solid var(--line); border-radius: 10px; padding: 12px;
    background: var(--bg-2);
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; transition: border-color .15s, background .15s;
  }
  .cert-card.selected { border-color: color-mix(in srgb, var(--emerald) 50%, transparent); background: color-mix(in srgb, var(--emerald) 8%, var(--bg-2)); }
  .cert-card .badge {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
    border: 1px solid var(--line-2);
    color: var(--indigo-2);
  }
  .cert-card.selected .badge { color: var(--emerald-2); }
  .cert-card .label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
  .cert-card .sub   { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
  .cert-card .check { margin-left: auto; opacity: 0; color: var(--emerald-2); }
  .cert-card.selected .check { opacity: 1; }

  .mockup-cta {
    margin-top: 4px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--indigo) 20%, transparent), color-mix(in srgb, var(--indigo) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--indigo) 30%, transparent);
    padding: 10px 12px; border-radius: 10px;
  }
  .mockup-cta .left { font-size: 12.5px; color: var(--ink-2); }
  .mockup-cta .left b { color: var(--ink); }
  .mockup-cta button {
    appearance: none; border: 0; cursor: pointer;
    background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
    color: #052e1d; font-weight: 600; font-size: 12.5px;
    padding: 7px 12px; border-radius: 7px;
  }

  /* tag floating beside mockup */
  .float-tag {
    position: absolute; z-index: 2;
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 12px; padding: 10px 12px;
    font-size: 12.5px; color: var(--ink-2);
    box-shadow: var(--shadow-2);
    display: flex; align-items: center; gap: 10px;
  }
  .float-tag .ico {
    width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--emerald) 18%, transparent);
    color: var(--emerald-2);
  }
  .float-tag b { color: var(--ink); display: block; font-weight: 600; font-size: 13px; }
  .float-tag span { color: var(--ink-3); font-size: 11.5px; }
  .float-tag.t1 { top: 12%; left: -36px; }
  .float-tag.t2 { bottom: 8%; right: -28px; }
  @media (max-width: 980px) { .float-tag { display: none; } }

  /* ── Section base ───────────────────────────────────────────────────── */
  section { padding: var(--pad-y) 0; position: relative; }
  .section-eyebrow {
    display: inline-block;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--emerald-2);
    margin-bottom: 14px;
  }
  .section-title {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
    margin: 0 0 14px; color: var(--ink); max-width: 760px;
    text-wrap: balance;
  }
  .section-lede {
    font-size: 17px; color: var(--ink-3); max-width: 620px; margin: 0; line-height: 1.55;
  }
  .section-head { margin-bottom: 56px; }

  /* ── Section: Problema ──────────────────────────────────────────────── */
  .problem-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  }
  @media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; } }
  .problem-card {
    position: relative;
    padding: 28px 24px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    overflow: hidden;
  }
  .problem-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(400px 200px at 80% -20%, color-mix(in srgb, var(--rose) 15%, transparent), transparent 60%);
    opacity: .8;
  }
  .problem-num {
    font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 500;
    color: var(--ink-4); letter-spacing: 0.04em;
  }
  .problem-card h3 {
    margin: 14px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
    color: var(--ink); line-height: 1.25;
  }
  .problem-card p { margin: 0; color: var(--ink-3); font-size: 14.5px; }
  .problem-ico {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--line-2); background: var(--bg-2);
    display: grid; place-items: center; color: var(--rose);
    margin-bottom: 4px;
  }

  /* ── Section: Como funciona (interactive demo) ──────────────────────── */
  .demo-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    box-shadow: var(--shadow-2);
    overflow: hidden;
  }
  .demo-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }
  .demo-tab {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    padding: 22px 24px; text-align: left;
    color: var(--ink-3); font-family: inherit;
    border-right: 1px solid var(--line);
    transition: background .15s, color .15s;
    display: flex; flex-direction: column; gap: 4px;
    position: relative;
  }
  .demo-tab:last-child { border-right: 0; }
  .demo-tab:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); color: var(--ink-2); }
  .demo-tab.active { color: var(--ink); background: color-mix(in srgb, var(--indigo) 8%, transparent); }
  .demo-tab.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  }
  .demo-tab .step {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
    color: var(--ink-4);
  }
  .demo-tab.active .step { color: var(--emerald-2); }
  .demo-tab .step .num {
    width: 22px; height: 22px; border-radius: 6px;
    display: grid; place-items: center; font-size: 11px; font-weight: 600;
    background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-3);
  }
  .demo-tab.active .step .num { background: var(--emerald); color: #052e1d; border-color: transparent; }
  .demo-tab h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
  .demo-tab p { margin: 0; font-size: 13px; color: var(--ink-3); }
  @media (max-width: 760px) {
    .demo-tabs { grid-template-columns: 1fr; }
    .demo-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  }

  .demo-stage {
    padding: 36px; min-height: 360px;
    display: grid; place-items: center;
    background:
      radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--indigo) 10%, transparent), transparent 70%),
      var(--bg-2);
  }
  .demo-frame { width: 100%; max-width: 560px; }

  /* upload zone */
  .upload {
    border: 2px dashed var(--line-2); border-radius: 14px;
    padding: 40px 28px; text-align: center;
    background: color-mix(in srgb, var(--surface) 50%, transparent);
    transition: border-color .2s, background .2s;
  }
  .upload.has-file { border-color: color-mix(in srgb, var(--emerald) 60%, transparent); background: color-mix(in srgb, var(--emerald) 6%, transparent); border-style: solid; }
  .upload .ico { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--indigo-2); }
  .upload.has-file .ico { color: var(--emerald-2); background: color-mix(in srgb, var(--emerald) 14%, transparent); border-color: color-mix(in srgb, var(--emerald) 30%, transparent); }
  .upload h5 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
  .upload p { margin: 0; color: var(--ink-3); font-size: 13.5px; }
  .upload .browse {
    margin-top: 16px; display: inline-block; padding: 9px 16px;
    background: var(--ink); color: var(--bg); border-radius: 8px;
    font-size: 13px; font-weight: 500; cursor: pointer;
  }
  [data-theme="dark"] .upload .browse { background: linear-gradient(180deg, #fff, #d6daea); color: #07080d; }
  .upload .filename {
    margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ink);
    padding: 6px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  }
  .upload .filename .x { color: var(--ink-3); cursor: pointer; }
  .upload .filename .x:hover { color: var(--rose); }

  /* sign step */
  .sign-grid { display: grid; gap: 14px; }
  .sign-cert { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 540px) { .sign-cert { grid-template-columns: 1fr; } }
  .cert-pick {
    appearance: none; cursor: pointer; text-align: left;
    padding: 16px; border-radius: 12px; border: 1px solid var(--line-2);
    background: var(--surface);
    display: flex; align-items: flex-start; gap: 12px;
    transition: border-color .15s, background .15s;
    font-family: inherit;
  }
  .cert-pick:hover { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
  .cert-pick.selected {
    border-color: color-mix(in srgb, var(--emerald) 55%, transparent);
    background: color-mix(in srgb, var(--emerald) 7%, var(--surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald) 25%, transparent);
  }
  .cert-pick .ico {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
    background: var(--bg-2); border: 1px solid var(--line-2);
    display: grid; place-items: center; color: var(--indigo-2);
  }
  .cert-pick.selected .ico { color: var(--emerald-2); border-color: color-mix(in srgb, var(--emerald) 30%, transparent); }
  .cert-pick h6 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
  .cert-pick p  { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
  .cert-pick .check { margin-left: auto; color: var(--emerald-2); opacity: 0; transition: opacity .15s; }
  .cert-pick.selected .check { opacity: 1; }

  .pin-row { display: flex; gap: 10px; }
  .pin-row input {
    flex: 1; appearance: none; outline: none;
    height: 44px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--surface); color: var(--ink);
    font-family: 'Geist Mono', monospace; font-size: 15px; letter-spacing: 0.4em;
  }
  .pin-row input:focus { border-color: color-mix(in srgb, var(--emerald) 50%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 15%, transparent); }

  /* download step */
  .signed {
    border: 1px solid color-mix(in srgb, var(--emerald) 35%, transparent);
    background: color-mix(in srgb, var(--emerald) 7%, transparent);
    border-radius: 14px; padding: 28px;
    display: flex; align-items: center; gap: 18px;
  }
  .signed .ico {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
    color: #052e1d;
    display: grid; place-items: center; flex-shrink: 0;
    box-shadow: 0 8px 24px -8px var(--emerald-glow);
  }
  .signed h5 { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
  .signed p  { margin: 0; font-size: 13.5px; color: var(--ink-2); }
  .signed p code { font-family: 'Geist Mono', monospace; color: var(--emerald-2); }
  .erased {
    margin-top: 14px; padding: 12px 14px;
    border: 1px dashed var(--line-2); border-radius: 10px;
    color: var(--ink-3); font-size: 13px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Geist Mono', monospace;
  }
  .erased .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: blink 1.5s infinite; }
  @keyframes blink { 50% { opacity: .3; } }

  .demo-progress {
    height: 3px; background: var(--surface-2); position: relative; overflow: hidden;
  }
  .demo-progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--indigo), var(--emerald));
    transition: width .4s cubic-bezier(.4,.0,.2,1);
  }

  /* ── Section: Diferenciais ──────────────────────────────────────────── */
  .features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  }
  @media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .features-grid { grid-template-columns: 1fr; } }
  .feat {
    padding: 22px;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface);
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color .15s, transform .15s;
  }
  .feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .feat .ico {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--emerald) 12%, transparent);
    color: var(--emerald-2);
    border: 1px solid color-mix(in srgb, var(--emerald) 25%, transparent);
  }
  .feat h4 { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
  .feat p  { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

  /* ── Comparativo Gov.br ─────────────────────────────────────────────── */
  .compare {
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); overflow: hidden;
  }
  .compare table { width: 100%; border-collapse: collapse; }
  .compare th, .compare td {
    padding: 16px 20px; text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px; vertical-align: middle;
  }
  .compare tbody tr:last-child td { border-bottom: 0; }
  .compare th {
    font-size: 12px; font-weight: 600; color: var(--ink-3);
    text-transform: uppercase; letter-spacing: 0.08em;
    background: var(--surface-2);
  }
  .compare th.us {
    color: var(--emerald-2);
    background: color-mix(in srgb, var(--emerald) 10%, var(--surface-2));
  }
  .compare td.us { background: color-mix(in srgb, var(--emerald) 5%, transparent); color: var(--ink); }
  .compare td.row-label { color: var(--ink-2); font-weight: 500; }
  .compare .yes, .compare .no, .compare .meh {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 500;
  }
  .compare .yes { color: var(--emerald-2); }
  .compare .no  { color: var(--rose); }
  .compare .meh { color: var(--amber); }
  @media (max-width: 720px) {
    .compare th, .compare td { padding: 12px 14px; font-size: 13px; }
  }

  /* ── Pricing Carousel ───────────────────────────────────────────────── */
  .pricing-carousel { position: relative; }
  .pricing-carousel-inner {
    display: flex; align-items: center; gap: 14px;
  }
  .pricing-track-wrap { flex: 1; overflow: hidden; min-width: 0; padding-top: 14px; }
  .pricing-track {
    display: flex; gap: var(--gap);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; align-items: stretch;
    padding-bottom: 4px;
  }
  .pricing-track .plan { flex-shrink: 0; /* width set by JS */ }
  .carousel-arrow {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink-2); cursor: pointer;
    display: grid; place-items: center;
    transition: color .15s, border-color .15s, background .15s, opacity .15s;
  }
  .carousel-arrow:hover:not(:disabled) {
    color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent);
    background: var(--surface-2);
  }
  .carousel-arrow:disabled { opacity: 0.3; cursor: default; }
  .carousel-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 20px;
  }
  .carousel-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
    background: var(--line-2); cursor: pointer;
    transition: background .2s, transform .2s, width .2s;
  }
  .carousel-dot.active { background: var(--emerald); width: 20px; border-radius: 4px; }
  .plan {
    position: relative;
    border: 1px solid var(--line); border-radius: 14px;
    background: var(--surface); padding: 26px 22px;
    display: flex; flex-direction: column; gap: 14px;
  }
  .plan.popular {
    border-color: color-mix(in srgb, var(--emerald) 45%, transparent);
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--emerald) 7%, var(--surface)), var(--surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--emerald) 25%, transparent),
                0 30px 60px -30px var(--emerald-glow);
  }
  .plan-tag {
    position: absolute; top: -10px; right: 18px;
    padding: 4px 10px; border-radius: 999px;
    background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
    color: #052e1d; font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
    box-shadow: 0 6px 16px -6px var(--emerald-glow);
  }
  .plan h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em; text-transform: uppercase; }
  .plan-price { display: flex; align-items: baseline; gap: 4px; }
  .plan-price .currency { font-size: 16px; color: var(--ink-3); font-weight: 500; }
  .plan-price .amount { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
  .plan-price .cents  { font-size: 18px; color: var(--ink-3); font-weight: 500; }
  .plan-price .per    { font-size: 13px; color: var(--ink-3); margin-left: 2px; }
  .plan-quota {
    padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
    background: var(--bg-2); font-size: 13px; color: var(--ink-2);
  }
  .plan-quota b { color: var(--ink); font-weight: 600; }
  .plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
  .plan li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; line-height: 1.4; }
  .plan li .ck {
    flex-shrink: 0; width: 16px; height: 16px; border-radius: 5px;
    display: inline-grid; place-items: center; margin-top: 1px;
    background: color-mix(in srgb, var(--emerald) 14%, transparent);
    color: var(--emerald-2);
    border: 1px solid color-mix(in srgb, var(--emerald) 25%, transparent);
  }
  .plan li.off { color: var(--ink-4); }
  .plan li.off .ck {
    background: transparent;
    color: var(--ink-4);
    border-color: var(--line);
  }
  .plan li.off span { text-decoration: line-through; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; }
  .plan .btn { width: 100%; justify-content: center; }

  .plan-foot { color: var(--ink-3); font-size: 13px; text-align: center; margin-top: 22px; }

  /* ── FAQ ────────────────────────────────────────────────────────────── */
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
  details.faq {
    border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); padding: 0;
    transition: border-color .15s, background .15s;
  }
  details.faq[open] { border-color: var(--line-2); background: var(--surface-2); }
  details.faq summary {
    list-style: none; cursor: pointer;
    padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 15px; font-weight: 500; color: var(--ink);
  }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary .plus {
    width: 24px; height: 24px; border-radius: 7px;
    border: 1px solid var(--line-2); display: grid; place-items: center;
    color: var(--ink-3); font-size: 14px; flex-shrink: 0;
    transition: transform .2s, color .15s, background .15s;
  }
  details.faq[open] summary .plus { transform: rotate(45deg); color: var(--emerald-2); border-color: color-mix(in srgb, var(--emerald) 35%, transparent); }
  details.faq .faq-body {
    padding: 0 22px 20px; color: var(--ink-3); font-size: 14px; line-height: 1.6;
  }
  details.faq .faq-body p { margin: 0 0 10px; }
  details.faq .faq-body p:last-child { margin-bottom: 0; }

  /* ── Final CTA ──────────────────────────────────────────────────────── */
  .final-cta {
    position: relative; overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 72px 56px;
    text-align: center;
    background:
      radial-gradient(800px 400px at 50% 120%, color-mix(in srgb, var(--emerald) 18%, transparent), transparent 70%),
      radial-gradient(600px 300px at 50% -20%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 70%),
      var(--surface);
  }
  .final-cta::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(closest-side, transparent 0%, #000 70%);
    -webkit-mask-image: radial-gradient(closest-side, transparent 0%, #000 70%);
    opacity: .6;
  }
  .final-cta > * { position: relative; }
  .final-cta h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
    color: var(--ink);
    text-wrap: balance;
  }
  .final-cta h2 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--emerald-2); }
  .final-cta p { margin: 0 auto 28px; max-width: 540px; color: var(--ink-3); font-size: 16.5px; }
  @media (max-width: 640px) { .final-cta { padding: 48px 24px; } }

  /* ── Footer ─────────────────────────────────────────────────────────── */
  footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 60px;
    color: var(--ink-3); font-size: 13.5px;
  }
  footer .row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
  }
  footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
  footer .links a { color: var(--ink-3); text-decoration: none; }
  footer .links a:hover { color: var(--ink); }

  /* ── Mobile nav adjustments ─────────────────────────────────────────── */
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .hero { padding-top: 56px; }
  }

/* Auth and small app pages */
.auth-shell { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(circle at 20% 0%, var(--emerald-glow), transparent 32%), var(--bg); }
.auth-card { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); padding: 28px; }
.auth-card h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.auth-card p { margin: 0 0 22px; color: var(--ink-3); }
.auth-form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); border-radius: 9px; padding: 12px 13px; font: inherit; }
.field input:focus, .field select:focus { outline: 2px solid color-mix(in srgb, var(--emerald) 45%, transparent); border-color: var(--emerald); }
.field-alert { display: none; color: var(--rose); font-size: 12.5px; line-height: 1.35; }
.field-alert.show { display: block; }
.field input.invalid { border-color: var(--rose); }
.field input.invalid:focus { outline-color: color-mix(in srgb, var(--rose) 45%, transparent); border-color: var(--rose); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.auth-row a, .auth-link { color: var(--emerald-2); text-decoration: none; font-weight: 600; }
.auth-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--ink-4); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); }
.btn-full { justify-content: center; width: 100%; }
.alert { display: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 12px; font-size: 14px; margin-bottom: 16px; }
.alert.show { display: block; }
.alert.ok { border-color: color-mix(in srgb, var(--emerald) 45%, transparent); color: var(--emerald-2); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.alert.err { border-color: color-mix(in srgb, var(--rose) 45%, transparent); color: var(--rose); background: color-mix(in srgb, var(--rose) 10%, transparent); }
.usage-box { margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 540px) { .auth-card { padding: 22px; } .auth-shell { padding: 28px 16px; } }
