/* Nuvel site: components of the pages other than the home (/precos, /cadastro, /termos, /news, 404), out/2026.
   Port of docs/site-home-conversao/paginas.css (Claude Design, approved). Builds on /assets/site.v1.css (tokens,
   base, header, footer, buttons, sections). Only tokens here: no literal color, so every rule works in both
   themes. Blue (--a-cta) stays exclusive to the trial CTA; other primary actions are ink-filled (.p-btn-ink).
   The last section holds the production hooks the design does not show (the scripts' own class names).
   .htaccess caches CSS for a month: on any change, bump the version in the file name and in every page. */

/* Shared ------------------------------------------------------------------------------------------------- */
.p-main { min-height: 50vh; }
.p-hero { padding: 64px 0 40px; }
.p-hero .a-h1 { font-size: 46px; }
.p-hero .a-sub { max-width: 36em; }
.p-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--a-ink-2); }
.a-page a.p-back { color: var(--a-ink-2); text-decoration: none; }
.a-page a.p-back:hover { color: var(--a-ink); text-decoration: underline; }
.p-back svg { width: 16px; height: 16px; flex: none; }
.p-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.p-topline .a-eyebrow { margin: 0; order: 0; } /* the generic mobile reorder of .a-eyebrow (site.v1.css) would put it after "voltar" */
.p-btn-ink, .a-page a.p-btn-ink { background: var(--a-ink); color: var(--a-on-ink); border-color: var(--a-ink); }
.p-btn-ink:hover, .a-page a.p-btn-ink:hover { background: var(--a-ink-2); border-color: var(--a-ink-2); color: var(--a-on-ink); }
.p-btn-ink:disabled, .a-btn-primary:disabled { opacity: 0.72; cursor: progress; }
.p-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.p-badge .a-dot { width: 7px; height: 7px; }
.p-badge-ok { background: var(--a-ok-bg); color: var(--a-ok); }
.p-badge-ok .a-dot { background: var(--a-ok-dot); }
.p-badge-warn { background: var(--a-warn-bg); color: var(--a-warn); }
.p-badge-warn .a-dot { background: var(--a-warn-dot); }
.p-badge-ink { background: var(--a-ink); color: var(--a-on-ink); }
.p-badge-mute { background: var(--a-l0); color: var(--a-ink-2); }
.p-badge-mute .a-dot { background: var(--a-ink-2); }
.p-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 12px; background: var(--a-bg-soft); border: 1px solid var(--a-line); font-size: 15px; line-height: 1.5; color: var(--a-ink-2); }
.p-note b, .p-note strong { color: var(--a-ink); font-weight: 600; }
.p-note-warn { background: var(--a-warn-bg); border-color: transparent; color: var(--a-ink); }
.p-note-warn .p-badge { background: var(--a-surface); }
.p-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; flex: none; }
@media (prefers-reduced-motion: no-preference) { .p-spin { animation: p-k-spin 0.8s linear infinite; } }
@keyframes p-k-spin { to { transform: rotate(360deg); } }

/* /precos ------------------------------------------------------------------------------------------------ */
.p-trial { margin-top: 32px; max-width: 760px; align-items: center; }
.p-trial .p-badge { flex: none; }
.p-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.p-plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 24px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; box-shadow: var(--a-shadow); }
.p-plan.is-featured { border: 2px solid var(--a-ink); padding: 25px 21px 23px; }
.p-plan-flag { position: absolute; top: -13px; left: 20px; }
.p-plan-name { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.p-plan-desc { font-size: 15px; line-height: 1.45; color: var(--a-ink-2); margin-top: 6px; min-height: 2.9em; }
.p-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 18px; }
.p-plan-price b { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-plan-price span { font-size: 15px; color: var(--a-ink-2); }
.p-plan-spec { font: 600 12px/1.4 var(--a-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-ink-2); margin-top: 8px; min-height: 2.8em; }
.p-plan .a-btn { width: 100%; height: 44px; font-size: 15px; margin-top: 16px; padding: 0 12px; }
.p-plan-list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--a-line); display: grid; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.p-plan-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.p-plan-list svg { width: 16px; height: 16px; margin-top: 2px; color: var(--a-ok-dot); }
.p-plan-list strong { font-weight: 600; }
.p-addons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-addon { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; }
.p-addon .a-seg-tag { margin-bottom: 6px; }
.p-addon .a-p { margin-top: 0; font-size: 15px; }
.p-addon-price { margin-top: auto; padding-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.p-addon-price b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.p-addon-price span { font-size: 14px; color: var(--a-ink-2); }
.p-addons-foot { margin-top: 20px; font-size: 14px; color: var(--a-ink-2); }
.p-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.p-end { text-align: center; padding: 56px 40px; border-radius: 16px; background: var(--a-bg-soft); border: 1px solid var(--a-line); }
.p-end .a-lead { margin-left: auto; margin-right: auto; }
.p-end .a-cta-block { align-items: center; }

/* /cadastro --------------------------------------------------------------------------------------------- */
.p-signup { padding: 48px 0 88px; }
.p-signup-in { max-width: 560px; margin: 0 auto; }
.p-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-step { display: grid; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--a-ink-2); }
.p-step i { display: block; height: 4px; border-radius: 4px; background: var(--a-track); }
.p-step.is-done i, .p-step.is-cur i { background: var(--a-ink); }
.p-step.is-cur { color: var(--a-ink); font-weight: 600; }
.p-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 16px; box-shadow: var(--a-shadow); padding: 36px 36px 32px; }
.p-card .a-h1 { font-size: 34px; line-height: 1.15; }
.p-card .a-sub { font-size: 17px; margin-top: 12px; }
.p-form { display: grid; gap: 20px; margin-top: 28px; }
.p-field { display: grid; gap: 6px; }
.p-label { font-size: 15px; font-weight: 600; color: var(--a-ink); }
.p-input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--a-field); background: var(--a-surface);
  font: 400 17px/1 var(--a-font); color: var(--a-ink); letter-spacing: 0; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.p-input::placeholder { color: var(--a-ink-2); opacity: 0.75; }
.p-input:hover { border-color: var(--a-ink-2); }
.p-input:focus, .p-input.is-focus { border-color: var(--a-ink); box-shadow: 0 0 0 1px var(--a-ink); }
.p-input[aria-invalid="true"] { border-color: var(--a-err); }
.p-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--a-err); }
.p-hint { font-size: 14px; color: var(--a-ink-2); }
.p-err { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--a-err); }
.p-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--a-err); color: var(--a-surface); font: 700 11px/1 var(--a-font); }
/* Empty error slot: stays in the DOM (role="alert" live region), takes no space. */
.p-err.is-off { margin-top: -6px; }
.p-err.is-off::before { content: none; }
.p-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--a-ink-2); cursor: pointer; }
.p-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--a-ink); cursor: pointer; }
.p-check a { font-weight: 600; }
.p-check.is-invalid input { outline: 2px solid var(--a-err); outline-offset: 2px; }
.p-form .a-btn { width: 100%; }
.p-form .a-risk { text-align: center; margin-top: -8px; }
.p-otp { width: 100%; max-width: 300px; margin: 0 auto; text-align: center; font-size: 26px; font-weight: 500; letter-spacing: 0.4em; height: 58px; font-variant-numeric: tabular-nums; }
.p-otp::placeholder { letter-spacing: 0.3em; }
.p-pane { display: grid; gap: 14px; justify-items: center; text-align: center; }
.p-pane .a-h2 { font-size: 30px; }
.p-pane .a-p { margin: 0; max-width: 30em; }
.p-pane .p-form { width: 100%; margin-top: 8px; }
.p-pane .p-label, .p-pane .p-err { justify-content: center; text-align: center; }
.p-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.p-ic svg { width: 30px; height: 30px; fill: currentColor; }
.p-ic-ok { background: var(--a-ok-bg); color: var(--a-ok); }
.p-ic-warn { background: var(--a-warn-bg); color: var(--a-warn); font: 700 30px/1 var(--a-font); }
.p-ic-wait { background: var(--a-l0); color: var(--a-ink); }
.p-ic-wait .p-spin { width: 28px; height: 28px; border-width: 3px; }
.p-target { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--a-ink); font-variant-numeric: tabular-nums; }
.p-signup-foot { margin-top: 22px; text-align: center; font-size: 15px; color: var(--a-ink-2); }
.p-signup-foot a { font-weight: 600; }

/* /termos ----------------------------------------------------------------------------------------------- */
.p-legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 64px; align-items: start; padding-bottom: 104px; }
.p-toc { position: sticky; top: 100px; }
.p-toc-h { font: 600 12px/1 var(--a-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--a-ink-2); margin-bottom: 12px; }
.p-toc nav { display: grid; border-left: 1px solid var(--a-line); }
.p-toc a { display: flex; align-items: center; min-height: 36px; padding: 4px 0 4px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--a-ink-2); text-decoration: none; }
.a-page .p-toc a:hover { color: var(--a-ink); border-left-color: var(--a-line-strong); text-decoration: none; }
.a-page .p-toc a.is-cur { color: var(--a-ink); font-weight: 600; border-left-color: var(--a-ink); }
.p-toc-m { display: none; }
.p-article { max-width: 44em; font-size: 17px; line-height: 1.7; color: var(--a-ink-2); }
.p-article p { margin: 0 0 16px; }
.p-article h2 { display: flex; align-items: baseline; gap: 14px; margin: 48px 0 14px; font-size: 25px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--a-ink); scroll-margin-top: 96px; }
.p-article h2 span { font-size: 15px; font-weight: 600; color: var(--a-ink-2); font-variant-numeric: tabular-nums; }
.p-article ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.p-article li { position: relative; padding-left: 22px; }
.p-article li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--a-ink-2); }
.p-article strong { color: var(--a-ink); font-weight: 600; }
.p-article a { font-weight: 600; }
.p-article hr { border: 0; border-top: 1px solid var(--a-line); margin: 40px 0 24px; }
.p-draft { margin-top: 28px; max-width: 760px; }
.p-draft p { margin: 6px 0 0; }

/* /news ------------------------------------------------------------------------------------------------- */
.p-news { max-width: 880px; padding-bottom: 104px; }
.p-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.p-filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--a-line-2); background: var(--a-surface); color: var(--a-ink-2); font: 500 15px/1 var(--a-font); cursor: pointer; }
.p-filter:hover { border-color: var(--a-ink); color: var(--a-ink); }
.p-filter[aria-pressed="true"] { background: var(--a-ink); border-color: var(--a-ink); color: var(--a-on-ink); }
.p-filter .a-dot { width: 7px; height: 7px; }
.p-list { display: grid; gap: 16px; }
.p-entry { padding: 28px 32px 30px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; box-shadow: var(--a-shadow); }
.p-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.p-entry-meta time { font-size: 14px; color: var(--a-ink-2); }
.p-entry h2 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--a-ink); margin: 0 0 10px; }
.p-entry-body { font-size: 16.5px; line-height: 1.65; color: var(--a-ink-2); display: grid; gap: 10px; }
.p-entry-body p { margin: 0; }
.p-entry-body ul { margin: 0; padding-left: 20px; }
.p-entry-body code { font: 500 14px/1.4 var(--a-mono); background: var(--a-l0); color: var(--a-ink); padding: 1px 6px; border-radius: 4px; }
.dot-feature { background: var(--a-ok-dot); }
.dot-improvement { background: var(--a-ink-2); }
.dot-fix { background: var(--a-warn-dot); }
.dot-info { background: var(--a-ink-2); opacity: 0.6; }
.p-skel { display: block; height: 14px; border-radius: 6px; background: var(--a-l0); }
@media (prefers-reduced-motion: no-preference) { .p-skel { animation: p-k-pulse 1.4s ease-in-out infinite; } }
@keyframes p-k-pulse { 50% { opacity: 0.55; } }
.p-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 64px 16px; border: 1px dashed var(--a-line-strong); border-radius: 12px; }
.p-state .a-h3 { margin-top: 6px; }
.p-state .a-p { margin: 0; }
.p-state .a-btn { margin-top: 10px; }
.p-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.p-pager span { font-size: 14px; color: var(--a-ink-2); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.p-pager .a-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 404 --------------------------------------------------------------------------------------------------- */
.p-404 { padding: 96px 0 120px; }
.p-404-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.p-404-n { font-size: 168px; line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; color: var(--a-l0); font-variant-numeric: tabular-nums; user-select: none; }
.dark .p-404-n { color: var(--a-l0); }
.p-404 .a-cta-block { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.p-404 .a-wa { margin-top: 0; }

/* Production hooks ----------------------------------------------------------------------------------------- */
/* Visibility class toggled by the page scripts (cadastro panes, news states). */
.a-page .hidden { display: none !important; }
/* /cadastro: the signup script toggles .show on its error slots (empty slots stay in the DOM, role="alert"),
   .done/.active on the step nodes and disables the submit buttons while sending. */
.p-err:not(.show) { display: none; }
.p-step.done i, .p-step.active i { background: var(--a-ink); }
.p-step.active { color: var(--a-ink); font-weight: 600; }
.p-field:has(#termsError.show) .p-check input { outline: 2px solid var(--a-err); outline-offset: 2px; }
.p-btn-spin { display: none; }
button:disabled > .p-btn-spin { display: block; }
.p-arrow { display: none; }
.p-otp-err { justify-content: center; }
/* /termos: version stamp recorded by the signup (cadastro.html TERMOS_VERSAO). */
.p-version { margin-top: 8px; font: 600 12px/1.4 var(--a-font); letter-spacing: 0.06em; color: var(--a-ink-2); font-variant-numeric: tabular-nums; }
/* /news: markdown of each entry (renderMarkdown in news.html). */
.p-entry-body h1, .p-entry-body h2, .p-entry-body h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--a-ink); }
.p-entry-body li + li { margin-top: 4px; }
.p-entry-body strong { color: var(--a-ink); font-weight: 600; }
.p-entry-body a { font-weight: 600; }
.p-entry-body pre { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--a-l0); overflow-x: auto; }
.p-entry-body pre code { padding: 0; background: none; }
.p-entry-body blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--a-line-2); }
.p-entry-body hr { border: 0; border-top: 1px solid var(--a-line); margin: 6px 0; }

/* Responsive -------------------------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .p-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .p-legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .p-toc { display: none; }
  .p-toc-m { display: block; margin-bottom: 28px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-surface); }
  .p-toc-m summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-size: 16px; font-weight: 600; cursor: pointer; }
  .p-toc-m summary::-webkit-details-marker { display: none; }
  .p-toc-m summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--a-ink-2); border-bottom: 2px solid var(--a-ink-2); transform: translateY(-2px) rotate(45deg); }
  .p-toc-m[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .p-toc-m nav { display: grid; padding: 0 18px 10px; }
  .p-toc-m a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--a-line); font-size: 15px; color: var(--a-ink-2); text-decoration: none; }
  .p-404-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .p-404-n { order: -1; font-size: 120px; }
}
@media (max-width: 760px) {
  .p-plans { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .p-plan-desc, .p-plan-spec { min-height: 0; }
  .p-addons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .p-hero { padding: 32px 0 28px; }
  .p-hero .a-h1 { font-size: 33px; }
  .p-trial { margin-top: 22px; }
  .p-note { padding: 14px 16px; font-size: 14.5px; }
  .p-trial { flex-direction: column; gap: 10px; align-items: flex-start; }
  .p-sec-head { flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .p-end { padding: 36px 20px; }
  .p-end .a-cta-block { align-items: stretch; }
  .p-signup { padding: 20px 0 64px; }
  .p-card { padding: 24px 20px 22px; border-radius: 14px; }
  .p-card .a-h1 { font-size: 29px; }
  .p-card .a-sub { font-size: 16px; }
  .p-pane .a-h2 { font-size: 25px; }
  .p-steps { margin-bottom: 20px; }
  .p-step { font-size: 13px; }
  .p-article { font-size: 16.5px; }
  .p-article h2 { font-size: 21px; margin-top: 36px; }
  .p-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--a-gutter)); padding-right: var(--a-gutter); scrollbar-width: none; }
  .p-filter { height: 44px; flex: none; }
  .p-entry { padding: 22px 20px 24px; }
  .p-entry h2 { font-size: 21px; }
  .p-entry-body { font-size: 16px; }
  .p-404 { padding: 40px 0 72px; }
  .p-404-n { font-size: 96px; }
  .p-404 .a-cta-block { flex-direction: column; align-items: stretch; }
  .p-404 .a-wa { justify-content: center; }
}
