/*
 * Shared styles for the landing and the legal pages.
 *
 * Visual direction: sober and document-like (graphite, white, thin rules), closer to a law
 * firm's letterhead than to a consumer app. The Argos orange is an accent only: the pupil in
 * the mark, small labels and focus rings. It never fills large areas.
 *
 * Fonts are self-hosted on purpose: the privacy policy promises that the site loads no
 * third-party resources, and Google Fonts would break that promise.
 */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("/fonts/archivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Neutrals */
  --ink: #14161b;
  --text: #2b2f36;
  --muted: #555c69;
  --subtle: #737b8a;
  --rule: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;

  /* Dark surfaces: hero, coverage band and footer */
  --dark: #131519;
  --dark-raised: #1b1e24;
  --dark-rule: rgba(255, 255, 255, .1);
  --on-dark: rgba(255, 255, 255, .92);
  --on-dark-muted: rgba(255, 255, 255, .62);
  --on-dark-subtle: rgba(255, 255, 255, .42);

  /* Brand, shared with the portal's palette.css */
  --brand: #f97316;
  --brand-strong: #c2410c;
  --brand-on-dark: #fdba74;
  --link: #2a4a86;

  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Archivo, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* Small uppercase label above headings, the same device Jusber uses for its wordmark */
.label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}

/* ── Brand ─────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand .wordmark { font-size: 14px; font-weight: 700; letter-spacing: .16em; }
.brand .wordmark sup { font-size: 9px; letter-spacing: 0; font-weight: 600; margin-left: 1px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f4; }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .6); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2f36; }
.btn-outline { border-color: var(--rule); color: var(--ink); }
.btn-outline:hover { border-color: var(--subtle); }
/* The plan cards other than the recommended one: an orange outline, not the grey one that looked disabled. */
body .btn-outline.cta[data-plan] { border: 1.5px solid var(--brand); color: var(--brand-strong); background: #fff7ed; }
body .btn-outline.cta[data-plan]:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* The orange call to action (trial and plans). */
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(249, 115, 22, .8); }
.btn-brand:hover { background: var(--brand-strong); }

/* "Entrar" in the dark header: solid, with the person icon. */
.btn-signin { background: #fff; color: var(--ink); gap: 6px; }
.btn-signin:hover { background: #eef1f4; }
.btn-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* "Planos" stands out in the menu, with the trial as a tag. */
.nav-plans {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px;
  background: rgba(249, 115, 22, .14); border: 1px solid rgba(249, 115, 22, .45); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s;
}
.nav-plans span { background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 9px; }
.nav-plans:hover, .nav-plans[aria-current="page"] { background: rgba(249, 115, 22, .26); border-color: var(--brand); }
@media (max-width: 760px) { .nav-plans span { display: none; } .nav-plans { padding: 0 14px; } }

/* Feature cards (home). */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; border: 1px solid var(--rule); border-radius: 14px; padding: 24px 22px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--brand); box-shadow: 0 14px 34px -22px rgba(15, 23, 42, .35); }
.feature h3 { font-size: 17px; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #fff3e8; color: var(--brand-strong); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-new { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); background: #fff3e8; border-radius: 999px; padding: 3px 9px; }
.features-cta { margin: 32px 0 0; text-align: center; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ── Footer (shared) ───────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: var(--on-dark-subtle); font-size: 13px; line-height: 1.7; padding: 56px 0 32px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid .brand { color: var(--on-dark); }
.footer-tagline { color: var(--on-dark-muted); max-width: 36ch; margin: 14px 0 0; }
.footer-col h2 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-bar {
  border-top: 1px solid var(--dark-rule); margin-top: 40px; padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Legal pages (privacidade/, termos/) ───────────────────────────── */
.legal-top { border-bottom: 1px solid var(--rule); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.legal-top a.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.legal-top a.back:hover { color: var(--ink); }

.doc { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; font-size: 15.5px; line-height: 1.7; }
.doc h1 { font-size: 30px; margin: 0 0 6px; }
.doc h2 { font-size: 17px; margin: 40px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--link); }
.doc .meta { color: var(--subtle); font-size: 13px; margin: 0 0 24px; }
.doc .lead { background: var(--bg-soft); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 28px; }
.doc .lead p:last-child { margin-bottom: 0; }
.doc .toc { font-size: 14px; color: var(--muted); columns: 2; column-gap: 32px; padding-left: 20px; margin-bottom: 8px; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; border: 1px solid var(--rule); padding: 8px 11px; }
.doc th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.doc td:first-child { width: 34%; font-weight: 600; color: var(--ink); }
.doc .note { color: var(--subtle); font-size: 13px; border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 16px; }
/* Fields Bugbear still has to fill in. Loud on purpose: none of these may reach production. */
.fill { background: #fff2b8; color: #a4302a; font-weight: 600; border-radius: 3px; padding: 0 4px; }

@media (max-width: 600px) {
  .doc { padding: 28px 16px 56px; }
  .doc h1 { font-size: 24px; }
  .doc .toc { columns: 1; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100% !important; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 10px; }
  .doc td { border: 0; }
  .doc td:first-child { border-bottom: 1px solid var(--rule); background: var(--bg-soft); }
}

/* Clauses that limit rights stand out (CDC, art. 54, § 4º): the summary and the liability section. */
.doc .destaque { border: 1px solid var(--ink); border-radius: var(--radius); padding: 4px 18px 10px; margin: 32px 0; }
.doc .destaque h2 { margin-top: 18px; }
.doc h3 { font-size: 15.5px; margin: 24px 0 8px; }
.doc code { font-size: 13.5px; background: var(--bg-soft); border-radius: 4px; padding: 1px 5px; }
.doc ol:not(.toc) { margin: 0 0 12px; padding-left: 22px; }
/* An archived version says so before anything else, with the way to the one in force. */
.doc .archived { background: var(--bg-soft); border-left: 3px solid var(--subtle); padding: 10px 14px; font-size: 14px; margin: 0 0 24px; }
/* Drafts under review. Like .fill, it must never reach production. */
.doc .draft-banner { background: #fff2b8; color: #6b4a00; border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin: 0 0 20px; }
.doc .versions { list-style: none; padding: 0; }
.doc .versions li { border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 0; }

/* Recursos (home): the brand's dark band, the two new features first and larger. */
body .features-band { background: radial-gradient(90% 60% at 100% 0%, rgba(249, 115, 22, .16), transparent 60%), var(--dark); color: var(--on-dark); }
body .features-band .head h2 { color: #fff; }
body .features-band .head p { color: var(--on-dark-muted); }
body .features-band .label { color: var(--brand-on-dark); }
body .features-band .features { grid-template-columns: repeat(4, 1fr); gap: 16px; }
body .features-band .feature { background: var(--dark-raised); border: 1px solid var(--dark-rule); border-radius: 16px; padding: 26px 24px; }
body .features-band .feature:hover { border-color: rgba(249, 115, 22, .6); box-shadow: 0 18px 40px -24px rgba(249, 115, 22, .45); }
body .features-band .feature h3 { color: #fff; font-size: 17px; margin: 16px 0 8px; }
body .features-band .feature p { color: var(--on-dark-muted); font-size: 14.5px; line-height: 1.55; }
body .features-band .feature--big { grid-column: span 2; padding: 30px 28px; }
body .features-band .feature--big h3 { font-size: 21px; }
body .features-band .feature--big p { font-size: 15.5px; }
body .features-band .feature-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; }
body .features-band .feature-new { background: rgba(249, 115, 22, .18); color: var(--brand-on-dark); }
body .features-band .features-cta { margin-top: 36px; }
@media (max-width: 960px) { body .features-band .features { grid-template-columns: repeat(2, 1fr); } .features-band .feature--big { grid-column: span 2; } }
@media (max-width: 640px) { body .features-band .features { grid-template-columns: 1fr; } .features-band .feature--big { grid-column: auto; } }

/* Bigger call to action (hero and Recursos). */
body .btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }

/* Phone: the menu keeps the brand, Planos and Entrar; Contato lives in the footer and the WhatsApp buttons. */
@media (max-width: 600px) {
  body .top nav .contact { display: none; }
  body .top nav { gap: 8px; }
  body .top .wordmark sup { display: none; }
  body .ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) { body .top .wordmark { display: none; } }
