/* ============================================================
   News Today — folha de estilo compartilhada
   Identidade original. Layout: faixas cheias, conteúdo em
   coluna central estreita, acento violeta único e contido.
   ============================================================ */

:root {
  /* Cor */
  --violet:       #5b3fd6;
  --violet-deep:  #3826a0;
  --violet-soft:  #efecfb;
  --ink:          #191627;  /* quase-preto com viés violeta */
  --slate:        #585472;  /* texto secundário */
  --paper:        #ffffff;
  --mist:         #f6f5fb;  /* fundo de seção */
  --line:         #e6e3f1;
  --mint:         #12a67a;  /* confiança / confirmação */
  color-scheme: light;      /* visual claro fixo em todos os dispositivos */

  /* Tipografia */
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --wrap: 1120px;
  --measure: 66ch;
  --radius: 14px;
  --shadow: 0 10px 40px -18px rgba(44, 30, 120, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px));
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 .9rem;
}

/* ---------- Cabeçalho / navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: .97rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.nav-cta {
  background: var(--violet);
  color: #fff !important;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
}
.nav-cta:hover { background: var(--violet-deep); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem max(20px, env(safe-area-inset-left,0px)) 1.2rem;
    box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links li { padding: .35rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}

/* ---------- Seções ---------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-mist { background: var(--mist); }
.band-violet {
  background: linear-gradient(160deg, var(--violet-deep), var(--violet));
  color: #fff;
}
.band-violet h2, .band-violet h3 { color: #fff; }
.band-violet p { color: rgba(255,255,255,.88); }

.center { text-align: center; }
.center p { margin-inline: auto; }
.lead { font-size: 1.18rem; color: var(--slate); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 55%;
  height: 460px;
  background: radial-gradient(closed, var(--violet-soft), transparent 70%);
  background: radial-gradient(circle at center, var(--violet-soft), transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.band-violet .btn-primary { background: #fff; color: var(--violet-deep); }
.band-violet .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }

/* ---------- Grade de cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
  margin-top: 2.4rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .98rem; color: var(--slate); margin-bottom: 0; }
.card .ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--violet-soft);
  color: var(--violet);
  margin-bottom: 1rem;
}
.band-mist .card { background: var(--paper); }

/* faixa de confiança */
.trust { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; justify-content: center; margin-top: 1rem; }
.trust li { list-style: none; display: inline-flex; align-items: center; gap: .55rem; color: var(--slate); font-weight: 500; }
.trust .dot { color: var(--mint); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; margin-top: 2.6rem; }
.stat b { display: block; font-family: var(--display); font-size: 2.3rem; color: var(--violet); line-height: 1; }
.stat span { color: var(--slate); font-size: .95rem; }
.band-violet .stat b { color: #fff; }
.band-violet .stat span { color: rgba(255,255,255,.82); }

/* ---------- Conteúdo de texto longo (políticas) ---------- */
.doc { padding-block: clamp(2.5rem, 6vw, 4rem); }
.doc .wrap { max-width: 820px; }
.doc h2 { margin-top: 2.4rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.3rem; color: var(--ink); }
.doc li { margin-bottom: .4rem; max-width: var(--measure); }
.doc .updated { color: var(--slate); font-size: .9rem; margin-bottom: 2rem; }
.doc a { text-decoration: underline; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; margin-top: 2.4rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); }
.contact-cards .row { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-cards .row:first-child { border-top: 0; }
.contact-cards .ico { color: var(--violet); flex: none; margin-top: 2px; }
.contact-cards b { display: block; font-family: var(--display); }
.contact-cards .val { color: var(--slate); word-break: break-word; }
.form-note { font-size: .88rem; color: var(--slate); margin-top: .4rem; }

/* ---------- CTA final ---------- */
.cta .wrap { text-align: center; }
.cta p { margin-inline: auto; max-width: 48ch; }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: 3.2rem 2rem;
  font-size: .95rem;
}
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 2.4rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col.company .line { margin-bottom: .35rem; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.13);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .86rem; color: rgba(255,255,255,.55);
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
