/* Site do Nodo e do Ideario: mesma diagramação nos dois (abertura em palco com recortes soltos nas bordas, print
   grande do produto, seções com selo e título grande, cartões em dupla com a imagem saindo pela borda, faixas
   alternadas, rodapé em colunas). As cores e a forma são as do design system do Ideario; a fonte é a do sistema. */

:root {
  --bg: #eef1ef; --band: #e4e9e6; --surface: #ffffff; --raised: #f7f9f8;
  --fg: #16201c; --muted: #5d6a65; --line: #d6ddd9; --edge: rgb(22 32 28 / .09);
  --accent: #2547c9; --accent-soft: #e2e8fb; --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(22 32 28 / .06), 0 8px 24px rgb(22 32 28 / .08);
  --float: 0 24px 64px -18px rgb(22 32 28 / .35);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Ubuntu Mono', monospace;
  --page: 1240px;
  --n-sand: #f6e9d6; --n-sage: #e1eedd; --n-sky: #dde8f8; --n-rose: #f8e0e4; --n-lilac: #e9e2f6; --n-butter: #f8f0c8;
  --st-todo: #e5484d; --st-doing: #e8a400; --st-done: #2f9e5c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513; --band: #151c19; --surface: #19211e; --raised: #1f2825;
    --fg: #e5ebe8; --muted: #93a19b; --line: #2b3632; --edge: rgb(255 255 255 / .07);
    --accent: #8ea4ff; --accent-soft: #232c4d; --on-accent: #0d1430;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --float: 0 24px 64px -18px rgb(0 0 0 / .8);
    --n-sand: #3a3125; --n-sage: #26352a; --n-sky: #22304a; --n-rose: #3d262c; --n-lilac: #2f2842; --n-butter: #39351e;
    --st-todo: #ff6369; --st-doing: #ffc53d; --st-done: #4cc38a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
code { font: .88em var(--mono); background: var(--raised); border: 1px solid var(--edge); border-radius: 6px; padding: 1px 5px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- barra fixa ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); }
.icon-link { display: inline-flex; color: var(--fg); }

/* ---------- botões (pílulas, como no app) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: filter .15s, background .3s ease; white-space: nowrap; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.soft { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.soft:hover { background: var(--raised); }
.btn svg { flex: none; }

/* ---------- abertura em palco ---------- */
.hero { position: relative; overflow: hidden; padding: 112px 24px 96px; text-align: center; }
.hero-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 14px; font-weight: 500; }
.chip.accent { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.hero h1 { font-size: clamp(52px, 10vw, 128px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 20px; text-wrap: balance; }
.hero p.lead { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.45; color: var(--muted); max-width: 680px; margin: 0 auto; text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero .fine a { color: inherit; }
.hero .fine a svg { display: inline; vertical-align: -2px; margin-left: 3px; }

/* pedaços da interface soltos em volta do título: componentes de verdade em HTML, não prints */
.bits { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bit {
  position: absolute; background: var(--surface); border-radius: 18px; padding: 14px 16px; text-align: left;
  box-shadow: var(--float), inset 0 0 0 1px var(--edge); font-size: 14px; line-height: 1.4; color: var(--fg);
  animation: drift 7s ease-in-out infinite alternate;
}
.bit.b1 { left: 5%; top: 104px; }
.bit.b2 { right: 6%; top: 132px; animation-delay: -2s; }
.bit.b3 { left: 8%; bottom: 72px; animation-delay: -4s; }
.bit.b4 { right: 5%; bottom: 96px; animation-delay: -6s; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }
.bit-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bit-row { display: flex; align-items: center; gap: 10px; }
.bit .sub { color: var(--muted); font-size: 13px; }
.bit .btn { pointer-events: auto; }
.bit svg.lucide { flex: none; }

/* nota em miniatura (Ideario) */
.mini-note { width: 220px; background: var(--n-butter); }
.mini-note b { display: block; font-size: 15px; margin-bottom: 6px; }
.chk { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.chk i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid color-mix(in oklab, var(--fg) 40%, transparent); flex: none; display: grid; place-items: center; }
.chk.done { color: var(--muted); text-decoration: line-through; }
.chk.done i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mini-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent); }
.mini-chip.tag { color: var(--accent); }

/* seletor de status de três cores (Ideario) */
.status-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); }
.st-dot { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; }
.st-dot::after { content: ''; width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid var(--st); opacity: .45; }
.st-dot.on::after { background: var(--st); opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 3px color-mix(in oklab, var(--st) 22%, transparent); }
.st-todo { --st: var(--st-todo); } .st-doing { --st: var(--st-doing); } .st-done { --st: var(--st-done); }

/* amostras de cor */
.swatches { display: grid; grid-template-columns: repeat(4, 26px); gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 999px; background: var(--c); box-shadow: inset 0 0 0 1px var(--edge); }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

/* dica de teclado (Nodo) */
.bit kbd { font: 600 12px var(--mono); padding: 2px 7px; border-radius: 6px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); }
.keys { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.keys kbd { color: var(--fg); }
.keys span + kbd { margin-left: 6px; }

/* mapa em miniatura (Nodo) */
.mini-map { padding: 10px; }
.mini-map svg { display: block; }

/* ícone em quadradinho de destaque */
.ico-sm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }

/* ---------- print grande ---------- */
.showcase { padding: 0 24px; }
.showcase picture, .showcase img { max-width: var(--page); margin: 0 auto; }
.showcase img { width: 100%; border-radius: 24px; box-shadow: var(--float), 0 0 0 1px var(--edge); }

/* ---------- seções ---------- */
.section { padding: 120px 0; }
.section.band { background: var(--band); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 16px 0 14px; text-wrap: balance; }
.section-head p { font-size: 19px; color: var(--muted); margin: 0; text-wrap: pretty; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* cartões em dupla, com a imagem saindo pela borda de baixo */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border-radius: 28px; box-shadow: 0 0 0 1px var(--edge); padding: 36px 36px 0; min-height: 520px; }
.card.wide { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 40px 0 0 40px; }
.card h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 14px 0 10px; }
.card p, .card li { color: var(--muted); font-size: 16.5px; }
.card ul { padding-left: 1.1em; margin: 12px 0 0; }
.card .media { margin-top: auto; padding-top: 28px; }
.card .media img { width: 100%; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px var(--edge), var(--shadow); }
.card.wide .media { margin: 0; padding: 0; align-self: end; }
.card.wide > div:first-child { padding-bottom: 40px; }
.card.wide .media img { border-radius: 16px 0 0 0; }
.card.wide .media.phone { justify-self: center; width: min(280px, 70%); }
.card .media.phone img { height: 440px; object-fit: cover; object-position: top; border-radius: 26px 26px 0 0; }

/* grade de caixas pequenas */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.box { background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--edge); padding: 26px 28px; }
.box h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.box p { margin: 0; color: var(--muted); font-size: 15.5px; }
.box .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }

/* grade de quatro */
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* novidades */
.news { max-width: 860px; margin: 0 auto; padding: 36px 40px; border-radius: 28px; }
.news ul { padding-left: 1.1em; margin: 0 0 12px; }
.news li { color: var(--muted); margin: 6px 0; }
.news li b { color: var(--fg); }
.news details { margin: 14px 0; }
.news summary { cursor: pointer; font-weight: 600; }
.news details p { margin: 8px 0; }
.tag { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
pre { line-height: 1.5; background: var(--raised); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; overflow-x: auto; margin: .6em 0; }
pre code { background: none; border: 0; padding: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.box.full { margin-top: 16px; }

/* baixar */
.dl .box h3 { font-size: 20px; }
.dl .box .btn { margin-top: 18px; }
.note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }

/* inglês */
.english { max-width: 760px; }
.english h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 12px; }
.english p, .english li { color: var(--muted); }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 48px; color: var(--muted); font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; color: var(--fg); }
.footer a { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; }
.footer a:hover { color: var(--fg); }
.footer .brand { display: flex; color: var(--fg); margin: 0 0 8px; }
.footer .legal a { display: inline; }
.footer .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* páginas de texto (privacidade, termos) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -.035em; line-height: 1.05; margin: 8px 0 12px; }
.doc h2 { font-size: 22px; margin: 2em 0 .4em; }
.doc .box { margin: 1.2em 0; }
.doc #english { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ---------- telas menores ---------- */
@media (max-width: 1360px) {
  .hero { display: flex; flex-direction: column; }
  .bits { order: 2; position: static; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 48px; }
  .bit { position: static; animation: none; }
  .bit.b3, .bit.b4 { display: none; }
}
@media (max-width: 1000px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide { grid-template-columns: 1fr; padding: 36px 36px 0; }
  .card.wide .media img { border-radius: 16px 16px 0 0; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .hero { padding: 72px 20px 64px; }
  .section { padding: 80px 0; }
  .cards, .grid, .grid.four, .footer .cols { grid-template-columns: 1fr; }
  .news { padding: 28px 24px; }
  .card { min-height: 0; padding: 28px 28px 0; border-radius: 24px; }
  .hero .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .bit { animation: none; } }
