/* Sistema de design no padrão do shadcn/ui (zinc), em CSS puro. */
:root {
  --background: 0 0% 100%; --foreground: 240 10% 3.9%;
  --card: 0 0% 100%; --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%; --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%; --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%; --muted-foreground: 240 3.8% 40%;
  --accent: 240 4.8% 95.9%; --accent-foreground: 240 5.9% 10%;
  --destructive: 0 72% 45%; --success: 142 65% 30%;
  --border: 240 5.9% 90%; --input: 240 5.9% 90%; --ring: 262 83% 58%;
  --brand: 262 83% 58%; --brand-2: 243 75% 59%;
  --radius: 0.625rem;
  --shadow: 0 1px 2px hsl(240 10% 4% / .05), 0 1px 3px hsl(240 10% 4% / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: 240 10% 3.9%; --foreground: 0 0% 98%;
  --card: 240 6% 7%; --card-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%; --muted-foreground: 240 5% 66%;
  --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%;
  --destructive: 0 84% 65%; --success: 142 60% 55%;
  --border: 240 3.7% 17%; --input: 240 3.7% 17%; --ring: 263 85% 70%;
  --brand: 263 85% 70%; --brand-2: 243 85% 70%;
  --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 240 10% 3.9%; --foreground: 0 0% 98%;
    --card: 240 6% 7%; --card-foreground: 0 0% 98%;
    --primary: 0 0% 98%; --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%; --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%; --muted-foreground: 240 5% 66%;
    --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%;
    --destructive: 0 84% 65%; --success: 142 60% 55%;
    --border: 240 3.7% 17%; --input: 240 3.7% 17%; --ring: 263 85% 70%;
    --brand: 263 85% 70%; --brand-2: 243 85% 70%;
    --shadow: none; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; border-color: hsl(var(--border)); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
a { color: hsl(var(--brand)); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 0.875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(var(--background) / .8); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.bar-row { display: flex; align-items: center; gap: 1rem; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -0.02em; color: hsl(var(--foreground)); text-decoration: none; font-size: 1.05rem; }
.brand .mark { border-radius: 8px; }
.nav { display: flex; gap: .25rem; margin-left: 1rem; }
.nav a { color: hsl(var(--muted-foreground)); text-decoration: none; font-size: .875rem; font-weight: 500; padding: .4rem .7rem; border-radius: calc(var(--radius) - 2px); }
.nav a:hover, .nav a[aria-current] { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.header-actions { margin-left: auto; display: flex; gap: .25rem; align-items: center; }
@media (max-width: 720px) { .nav { display: none; } }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font: inherit; font-size: .875rem; font-weight: 500; height: 2.5rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px); border: 1px solid transparent; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); cursor: pointer; text-decoration: none; transition: background-color .15s, opacity .15s, box-shadow .15s; }
.btn:hover { background: hsl(var(--primary) / .9); text-decoration: none; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-lg { height: 2.9rem; padding: 0 1.6rem; font-size: .95rem; border-radius: var(--radius); }
.btn-sm { height: 2.1rem; padding: 0 .75rem; }
.btn-outline { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--input)); }
.btn-outline:hover { background: hsl(var(--accent)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--accent)); }
.btn-icon { width: 2.1rem; height: 2.1rem; padding: 0; }
.btn-danger-ghost { color: hsl(var(--muted-foreground)); }

/* campos */
label { display: grid; gap: .4rem; font-size: .8rem; font-weight: 500; color: hsl(var(--muted-foreground)); min-width: 0; }
input[type=text], input[type=password], select { font: inherit; font-size: .9rem; color: hsl(var(--foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px); padding: 0 .75rem; height: 2.5rem; width: 100%; min-width: 0; text-overflow: ellipsis; }
input:focus-visible, select:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
input[type=checkbox] { width: 1rem; height: 1rem; accent-color: hsl(var(--brand)); }
.check { display: flex; align-items: center; gap: .5rem; color: hsl(var(--foreground)); font-size: .9rem; font-weight: 400; }
.checks { display: grid; gap: .5rem; align-content: end; }

/* cartão, badge, alerta, progresso */
.card { background: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.badge { display: inline-flex; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; font-weight: 600; background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-brand { background: hsl(var(--brand) / .12); border-color: hsl(var(--brand) / .3); color: hsl(var(--brand)); }
.alert { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem; }
.alert-error { border-color: hsl(var(--destructive) / .4); background: hsl(var(--destructive) / .08); color: hsl(var(--destructive)); }
.bar { height: .5rem; border-radius: 999px; background: hsl(var(--secondary)); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, hsl(var(--brand)), hsl(var(--brand-2))); border-radius: inherit; transition: width .3s ease; }

/* hero */
.hero { padding: 3rem 0 1.5rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; max-width: 22ch; }
.hero-home h1 { background: linear-gradient(180deg, hsl(var(--foreground)), hsl(var(--foreground) / .72)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead, .lead { font-size: clamp(1rem, 2vw, 1.2rem); color: hsl(var(--muted-foreground)); max-width: 46rem; }
.hero .badge { background: hsl(var(--brand) / .1); border-color: hsl(var(--brand) / .25); color: hsl(var(--brand)); }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.crumbs a { color: inherit; }
main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 28rem; background: radial-gradient(60% 60% at 50% 0%, hsl(var(--brand) / .12), transparent 70%); pointer-events: none; z-index: -1; }
main { position: relative; }

/* ferramenta */
.tool { max-width: 46rem; margin: 1rem auto 3rem; display: grid; gap: 1rem; }
.quota { display: flex; gap: .6rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .85rem; color: hsl(var(--muted-foreground)); }
.drop { display: grid; gap: .35rem; justify-items: center; text-align: center; padding: 2.5rem 1.25rem; background: hsl(var(--card)); border: 2px dashed hsl(var(--input)); border-radius: calc(var(--radius) + 6px); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; box-shadow: var(--shadow); }
.drop:hover, .drop.over { border-color: hsl(var(--brand)); background: hsl(var(--brand) / .05); }
.drop.over { transform: scale(1.01); }
.drop[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.drop strong { font-size: 1.05rem; }
.drop-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: hsl(var(--brand) / .12); color: hsl(var(--brand)); margin-bottom: .35rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: .9rem; }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.go-row { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.list { display: grid; gap: .75rem; }
.item { display: grid; gap: .65rem; padding: 1rem 1.1rem; }
.item-top { display: flex; gap: .6rem; align-items: center; }
.item-name { display: grid; min-width: 0; flex: 1; }
.item-name strong { overflow-wrap: anywhere; font-size: .95rem; }
.item .explain { font-size: .85rem; color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); border-radius: calc(var(--radius) - 2px); padding: .55rem .75rem; }
.x { background: transparent; border: 0; color: hsl(var(--muted-foreground)); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .15rem .55rem; border-radius: 8px; }
.x:hover:not(:disabled) { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.x:disabled { opacity: .3; cursor: default; }
.done-line { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.ok { color: hsl(var(--success)); font-weight: 600; }
.error-text { color: hsl(var(--destructive)); font-size: .9rem; }
.notes { font-size: .82rem; color: hsl(var(--muted-foreground)); display: grid; gap: .2rem; }
.lock-row { display: flex; gap: .6rem; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: .9rem 0 .5rem; }
#actions h3 { font-size: 1.05rem; }

/* conteúdo */
.block { margin: 0 0 3.25rem; display: grid; gap: 1rem; }
.block > p, .block > ul, .block > .steps, .block > .faq { max-width: 46rem; }
.block h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
.block p { color: hsl(var(--foreground) / .88); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 1.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 999px; background: hsl(var(--brand) / .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; font-size: .9rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.cards .card p { font-size: .92rem; color: hsl(var(--muted-foreground)); }
.link-card { text-decoration: none; color: inherit; display: block; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: hsl(var(--brand) / .6); transform: translateY(-2px); }
.link-card h3 { color: hsl(var(--foreground)); }
.faq { display: grid; }
.faq details { border-bottom: 1px solid hsl(var(--border)); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: .2rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 0 1rem; color: hsl(var(--muted-foreground)); }
.cta { margin: 1rem 0 4rem; text-align: center; padding: 2.5rem 1.5rem; border-radius: calc(var(--radius) + 8px); background: linear-gradient(135deg, hsl(var(--brand)), hsl(var(--brand-2))); color: #fff; display: grid; gap: .8rem; justify-items: center; }
.cta h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.cta p { opacity: .92; max-width: 34rem; }
.cta .btn { background: #fff; color: #18181b; }
.cta .btn:hover { background: #f4f4f5; }
.notfound { text-align: center; padding: 6rem 1rem; display: grid; gap: 1rem; justify-items: center; }

/* rodapé */
.site-footer { border-top: 1px solid hsl(var(--border)); padding: 2.5rem 0 2rem; background: hsl(var(--muted) / .35); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.5rem; }
.foot h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); margin-bottom: .6rem; }
.foot nav { display: grid; gap: .35rem; align-content: start; }
.foot nav a { color: hsl(var(--foreground)); text-decoration: none; font-size: .9rem; }
.foot nav a:hover { text-decoration: underline; }
.disclaimer { max-width: 52rem; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* conta (quando ativada) */
.account { display: flex; gap: .6rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .85rem; }
.account form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.account input[type=email] { font: inherit; font-size: .9rem; height: 2.3rem; padding: 0 .75rem; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); color: hsl(var(--foreground)); min-width: 14rem; }
.account input[type=email]:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 1px; }
.alert-info { border-color: hsl(var(--brand) / .35); background: hsl(var(--brand) / .08); color: hsl(var(--foreground)); }
