:root {
  /* Identidade TechM2 IT — claro, marinho + laranja-cenoura (mesma paleta dos produtos irmãos) */
  --bg: #f5f7fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --card-2: #f4f6fb;
  --line: #e4e9f2;
  --line-soft: #edf0f6;
  --ink: #0e1430;
  --text: #1b2347;
  --muted: #5f6c88;
  --muted-2: #95a0b8;
  --navy: #101840;
  --navy-2: #0d141a;
  --brand: #fb8b1e;
  --brand-2: #fd7a16;
  --brand-deep: #e9700a;
  --green: #12a067;
  --red: #e0394c;
  --amber: #d98600;
  --gold: #f0b429;
  --grad: linear-gradient(135deg, #ffb020 0%, #fb7e16 100%);
  --grad-2: linear-gradient(135deg, #fda01a, #fb7414);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 16px 44px rgba(16,24,64,.10);
  --shadow-sm: 0 4px 16px rgba(16,24,64,.06);
  --shadow-glow: 0 10px 26px rgba(251,124,20,.32);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
a { color: var(--brand-deep); }
h1, h2, h3, h4 { letter-spacing: -.02em; color: var(--ink); }
code, pre { font-family: ui-monospace, Menlo, monospace; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 460px at 12% -8%, rgba(251,124,20,.10), transparent 60%),
    radial-gradient(680px 460px at 92% -2%, rgba(16,24,64,.06), transparent 55%),
    radial-gradient(600px 480px at 50% 108%, rgba(251,124,20,.07), transparent 60%);
}

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(245,247,251,.8); backdrop-filter: blur(14px); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); box-shadow: var(--shadow-sm); text-decoration: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand-name strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-by { font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: .02em; text-decoration: none; transition: color .2s; }
.brand-by:hover { color: var(--brand-deep); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer;
  background: var(--grad-2); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit;
  padding: 14px 24px; border-radius: 13px; box-shadow: var(--shadow-glow); transition: transform .08s, filter .2s, box-shadow .2s; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 36px rgba(251,124,20,.42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .65; cursor: default; }
.btn-primary.block, .btn-ghost.block { width: 100%; }
.btn-primary.lg { padding: 17px 34px; font-size: 17px; border-radius: 15px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 9px 16px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; transition: border-color .2s, background .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost:hover { border-color: var(--brand); background: rgba(251,124,20,.06); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(224,57,76,.08); }
.lg.block { width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite; display: inline-block; vertical-align: middle; }

/* hero */
.hero { padding: 64px 0 30px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--brand-deep);
  background: rgba(251,124,20,.1); border: 1px solid rgba(251,124,20,.26); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--muted); max-width: 620px; margin: 0 auto 34px; font-size: 17.5px; }
.hero .sub strong { color: var(--text); font-weight: 700; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--green); }

/* cards genéricos */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.status-pill { font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.status-ativa { background: rgba(18,160,103,.12); color: var(--green); }
.status-inativa { background: rgba(224,57,76,.12); color: var(--red); }
.status-outra { background: rgba(217,134,0,.14); color: var(--amber); }
.bool-true { background: rgba(18,160,103,.14); color: var(--green); }
.bool-false { background: rgba(224,57,76,.14); color: var(--red); }

/* código / API key */
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--ink); color: #d7e0ff; border-radius: 12px; padding: 16px 18px; overflow-x: auto; white-space: pre; }
.code-box .cm { color: #7c88b8; }
.key-box { display: flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--ink); word-break: break-all; }
.key-box button { flex-shrink: 0; }

/* tabela genérica (checkouts, lojistas) */
.data-table-wrap { border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; background: var(--card-2); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table tr:not(:last-child) th, .data-table tr:not(:last-child) td { border-bottom: 1px solid var(--line-soft); }
.data-table th { text-align: left; padding: 11px 16px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.data-table td { padding: 11px 16px; font-size: 14px; color: var(--text); white-space: nowrap; }
.list-empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px 0; }

/* seções genéricas / landing */
.sec-title { text-align: center; font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin: 0 0 10px; }
.sec-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0 70px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-num { font-size: 28px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.features { margin: 0 0 80px; }
.features .sec-title { margin-bottom: 38px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, border-color .18s, box-shadow .18s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(251,124,20,.4); box-shadow: var(--shadow); }
.feat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(251,124,20,.12); color: var(--brand-deep); margin-bottom: 16px; }
.feat-ic svg { width: 24px; height: 24px; }
.feat h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.how { margin: 0 0 80px; }
.how .sec-title { margin-bottom: 38px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step-n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-2); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; box-shadow: var(--shadow-glow); }
.step h4 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.pricing { margin: 0 0 80px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-glow); }
.plan-tag { position: absolute; top: -12px; right: 24px; background: var(--grad-2); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan-name { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.plan-price { margin: 12px 0 20px; }
.plan-price .amount { font-size: 38px; font-weight: 800; color: var(--ink); }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.plan-list li { padding-left: 28px; position: relative; font-size: 14.5px; }
.plan-list li.yes::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.faq { margin: 0 auto 80px; max-width: 720px; }
.faq .sec-title { margin-bottom: 30px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-deep); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

.cta-final { text-align: center; padding: 56px 30px; margin: 0 0 70px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.cta-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% 0%, rgba(251,124,20,.12), transparent 70%); }
.cta-final h2 { font-size: 28px; margin: 0 0 8px; font-weight: 800; position: relative; }
.cta-final p { color: var(--muted); margin: 0 0 26px; position: relative; }
.cta-final .btn-primary { position: relative; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 50px; margin-top: 20px; }
.foot-brand { font-weight: 800; font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.foot-brand strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer p { color: var(--muted); font-size: 12.5px; max-width: 680px; }
.foot-techm2 { color: var(--brand-deep); text-decoration: none; font-weight: 700; }
.foot-techm2 strong { color: inherit; }
.foot-techm2:hover { text-decoration: underline; }

/* páginas de conta/entrar/admin (cartão central) */
.pay-wrap { max-width: 460px; margin: 0 auto; padding: 60px 22px; }
.pay-wrap.wide { max-width: 760px; }
.pay-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.pay-head { text-align: center; margin-bottom: 22px; }
.pay-head .crown { width: 52px; height: 52px; border-radius: 15px; background: var(--grad-2); color: #fff; display: grid; place-items: center; font-size: 24px; margin: 0 auto 12px; box-shadow: var(--shadow-glow); }
.pay-head h1 { font-size: 22px; margin: 0 0 4px; } .pay-head p { color: var(--muted); font-size: 14.5px; margin: 0; }
.field-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 6px; display: block; }
.txt { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); padding: 0 14px; outline: none; font-family: inherit; font-size: 15px; }
.txt:focus { border-color: var(--brand); }
#code { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 800; }
.msg { font-size: 13.5px; margin-top: 12px; min-height: 18px; text-align: center; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
.back-link { display: block; margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acc-row:last-of-type { border-bottom: none; }
.acc-lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.acc-val { font-size: 14.5px; font-weight: 600; color: var(--text); text-align: right; }
.section-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 28px 0 10px; }

@media (max-width: 820px) {
  .feat-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 560px) {
  .feat-grid, .steps, .plans { grid-template-columns: 1fr; }
  .trust { gap: 12px 18px; }
  .hero { padding: 44px 0 20px; }
}
