/* Design tokens copiados de resources/views/welcome.blade.php e
   resources/views/conta/layout.blade.php — mesma linguagem visual do
   produto, unificada num único arquivo pra servir tanto a home quanto o
   painel do cliente. */
:root {
  --bg: oklch(97.8% .006 288);
  --surface: oklch(99.7% .002 290);
  --surface-2: oklch(96.3% .007 288);
  --border: oklch(89.5% .009 286);
  --border-soft: oklch(93.5% .006 286);
  --ink: oklch(17% .014 288);
  --ink-dim: oklch(42% .013 285);
  --ink-faint: oklch(60% .01 285);
  --brand: oklch(56% .21 295);
  --brand-dark: oklch(46% .19 296);
  --brand-soft: oklch(93% .045 293);
  --brand-ring: oklch(56% .21 295 / .18);
  --red: oklch(42% .17 25);
  --red-soft: oklch(93% .045 25);
  --code-bg: oklch(16% .014 288);
  --code-ink: oklch(90% .01 285);
  --display: 'Archivo', ui-sans-serif, sans-serif;
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
a { color: var(--brand); }
code, pre { font-family: var(--mono); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

header.top { border-bottom: 1px solid var(--border); background: oklch(99.3% .003 290 / .92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1160px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
nav.links { display: flex; align-items: center; gap: 28px; font-size: 13.5px; font-weight: 600; }
nav.links a { color: var(--ink-dim); text-decoration: none; }
nav.links a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font); font-weight: 700; font-size: 13.5px; padding: 11px 20px; border-radius: var(--pill); border: 1.5px solid var(--border); text-decoration: none; color: var(--ink); background: var(--surface); cursor: pointer; transition: background-color .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: oklch(80% .014 286); text-decoration: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-primary:hover { background: oklch(28% .018 288); border-color: oklch(28% .018 288); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.hero { padding: 76px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 5px 13px 5px 10px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand-dark); margin-bottom: 24px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); line-height: 1.03; margin: 0 0 20px; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.sub { font-size: 1.1rem; color: var(--ink-dim); max-width: 56ch; margin: 0 0 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hero .ctas .btn { padding: 14px 26px; font-size: 14.5px; }

section { padding: 56px 0; }
section.tight { padding-top: 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--brand); margin-bottom: 10px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2.15rem); margin: 0 0 12px; }
.section-head p { color: var(--ink-dim); font-size: 15px; margin: 0; max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature { padding: 22px; }
.feature .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature h3 { font-size: 15.5px; margin: 0 0 6px; }
.feature p { font-size: 13.5px; color: var(--ink-dim); margin: 0; line-height: 1.55; }

.plan-card { padding: 22px; display: flex; flex-direction: column; }
.plan-card .name { font-weight: 700; font-size: 14px; }
.plan-card .price { font-size: 26px; font-weight: 800; font-family: var(--display); margin: 10px 0 2px; }
.plan-card .price span { font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.plan-card .desc { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 16px; min-height: 32px; }
.plan-card .meta { font-size: 12px; color: var(--ink-faint); margin: 0 0 18px; }
.plan-card.current { border-color: var(--brand); }

footer.foot { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 40px; }
footer.foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-faint); }
footer.foot a { color: var(--ink-faint); }

/* Painel / formulários */
main.panel-main { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
label { font-size: 11.5px; font-weight: 600; color: var(--ink-dim); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .02em; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; text-transform: none; font-weight: 400; letter-spacing: normal; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; font-family: var(--font); font-size: 14px; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }

.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 20px; border: 1px solid transparent; }
.flash-status { background: var(--brand-soft); color: var(--brand-dark); border-color: oklch(85% .04 30); }
.flash-error { background: var(--red-soft); color: var(--red); border-color: oklch(84% .06 25); }
.flash ul { margin: 0; padding-left: 18px; }
.hidden { display: none !important; }

.mono { font-family: var(--mono); }
.muted { color: var(--ink-faint); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); letter-spacing: .01em; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; }
.badge-green { background: var(--brand-soft); color: var(--brand-dark); border-color: oklch(85% .04 30); }
.badge-gray { background: var(--bg); color: var(--ink-faint); border-color: var(--border); }
.badge-red { background: var(--red-soft); color: var(--red); border-color: oklch(84% .06 25); }
.btn-link { background: none; border: none; padding: 0; font: inherit; font-weight: 600; font-size: 12.5px; color: var(--ink-faint); cursor: pointer; text-decoration: underline; }
.btn-link:hover { color: var(--red); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 18px; }
.tile .num { font-size: 22px; font-weight: 700; }
.tile .label { color: var(--ink-faint); font-size: 13px; }

.list-row { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list-row:first-child { border-top: none; }
.list-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-header span { font-weight: 600; font-size: 14px; }
.section-card { margin: 0 0 20px; }
.section-card-pad { padding: 24px; }

.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

details.cert-form { margin-top: 10px; width: 100%; }
details.cert-form summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--brand-dark); list-style: none; }
details.cert-form summary::-webkit-details-marker { display: none; }
details.cert-form .box { margin-top: 10px; padding: 14px; background: var(--bg); border-radius: var(--radius-sm); }
