/* Layout: topo e vídeo escuros, com o celular aceso no centro; do meio para baixo, claro, para a confiança
   na hora de decidir. Menos texto, mais produto. Uma cor forte só: o roxo da dose. */
:root {
  --noite: #000000;
  --noite-2: #101012;
  --papel: #ffffff;
  --nevoa: #f5f5f7;
  --tinta: #1d1d1f;
  --tinta-2: #6e6e73;
  --luz: #f5f5f7;
  --luz-2: #a1a1a6;
  --linha: #d2d2d7;
  --link: #0d6efd;
  --link-noite: #6ea8fe;
  --dose: #0d6efd;
  --dose-noite: #6ea8fe;
  --dose-fundo: #e7f1ff;
  --fonte: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  /* tela do app no modo escuro (paleta do próprio Caderno) */
  --app-fundo: #212529; --app-cartao: #2b3035; --app-cartao-2: #343a40; --app-linha: #495057; --app-texto: #dee2e6; --app-texto-2: #adb5bd;
  --app-roxo: #a98eda; --app-roxo-fundo: #2c1a4d; --app-alarme: #ea868f; --app-alarme-fundo: #2c0b0e; --app-confira: #ffda6a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --papel: #000000; --nevoa: #161617; --tinta: #f5f5f7; --tinta-2: #a1a1a6; --linha: #424245; --link: #6ea8fe; --dose: #6ea8fe; --dose-fundo: #0b2448; color-scheme: dark; }
}
:root[data-theme="dark"] { --papel: #000000; --nevoa: #161617; --tinta: #f5f5f7; --tinta-2: #a1a1a6; --linha: #424245; --link: #6ea8fe; --dose: #6ea8fe; --dose-fundo: #0b2448; color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--fonte); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.035em; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link-noite); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.largura { max-width: 1060px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.secao { padding-block: 120px; }
.nevoa { background: var(--nevoa); }
.escuro { background: var(--noite); color: var(--luz); }
.escuro a { color: var(--link-noite); }
.titulo { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; font-weight: 700; text-align: center; }
.apoio { margin: 16px auto 0; max-width: 30em; text-align: center; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.38; color: var(--tinta-2); }
.escuro .apoio { color: var(--luz-2); }
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 980px; background: #0d6efd; color: #fff !important; font-size: 17px; font-weight: 500; }
.botao:hover { text-decoration: none; filter: brightness(1.08); }

/* barra */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(0,0,0,0.8); }
.barra { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: var(--luz); }
.barra .largura { display: flex; align-items: center; gap: 28px; height: 52px; }
.marca { display: flex; align-items: center; gap: 9px; color: var(--luz); font-weight: 600; letter-spacing: -0.02em; }
.marca:hover { text-decoration: none; }
.marca img { width: 24px; height: 24px; border-radius: 6px; }
.barra nav { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.barra nav a { color: var(--luz); opacity: 0.8; }
.barra .entrar { padding: 6px 14px; border-radius: 980px; background: #0d6efd; color: #fff; font-size: 13px; font-weight: 500; }
.barra .entrar:hover { text-decoration: none; }
@media (max-width: 720px) { .barra nav { display: none; } .barra .entrar { margin-left: auto; } }

/* abertura escura com o celular ao vivo */
.abertura { background: radial-gradient(70% 55% at 50% 72%, #0a2a66 0%, rgba(10, 42, 102, 0) 70%), var(--noite); color: var(--luz); padding-block: 84px 96px; text-align: center; overflow: hidden; }
.abertura h1 { font-size: clamp(52px, 10vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; }
.abertura .apoio { color: var(--luz-2); max-width: 22em; }
.abertura .botao { margin-top: 30px; }
.palco { margin-top: 64px; display: grid; justify-items: center; gap: 30px; }
.controle { width: min(420px, 100%); display: grid; gap: 8px; }
.controle .linha-c { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--luz-2); }
.controle output { color: var(--luz); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.controle input { width: 100%; accent-color: var(--dose-noite); height: 28px; margin: 0; }
.controle .dica { font-size: 13px; color: var(--luz-2); }

/* o celular */
.fone { position: relative; width: 300px; aspect-ratio: 393 / 852; border-radius: 15% / 7%; padding: 10px; background: #2c2c2e; box-shadow: 0 0 0 1px #48484a inset, 0 40px 120px rgba(13, 110, 253, 0.38); }
.fone.claro { background: #1d1d1f; box-shadow: 0 0 0 1px #3a3a3c inset, 0 30px 80px rgba(0, 0, 0, 0.18); }
.fone .tela { position: relative; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; }
.fone .ilha { position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3; }
.fone .status { position: absolute; inset: 0 0 auto; height: 6.4%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 10%; font-size: 12px; font-weight: 600; z-index: 2; }
.fone.claro .tela { background: #fff; }
.fone.claro .status { color: #1d1d1f; background: #fff; }
.fone.claro img { position: absolute; top: 6.4%; left: 0; width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .abertura .fone { animation: subir 1.1s cubic-bezier(.2, .7, .1, 1) both 0.15s; }
  @keyframes subir { from { opacity: 0; transform: translateY(60px) scale(0.96); } to { opacity: 1; transform: none; } }
}

/* a tela do app, reproduzida (modo escuro) */
.app { height: 100%; background: var(--app-fundo); color: var(--app-texto); text-align: left; font-size: 10.6px; line-height: 1.38; padding: 17% 5.5% 0; }
.app .status-escuro { position: absolute; inset: 0 0 auto; height: 6.4%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 10%; font-size: 12px; font-weight: 600; color: #fff; }
.app .voltar { color: var(--app-roxo); font-size: 11px; }
.app h4 { margin: 6px 0 5px; font-size: 19px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.app .etq { display: flex; gap: 6px; align-items: center; font-size: 9.5px; color: var(--app-texto-2); }
.app .faixa { padding: 1px 6px; border-radius: 5px; background: var(--app-roxo-fundo); color: var(--app-roxo); font-weight: 600; }
.app .confira { margin-top: 4px; font-size: 9.5px; font-weight: 600; color: var(--app-confira); }
.app .confira::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #ffc107; vertical-align: 1px; }
.app .peso { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; padding: 9px 11px; border: 1.5px solid var(--app-roxo); border-radius: 10px; background: var(--app-cartao); }
.app .peso b { font-size: 11.5px; color: #fff; }
.app .peso { cursor: text; }
.app .peso span { display: flex; align-items: baseline; }
.app .peso input { width: 3.2em; padding: 0; border: 0; background: transparent; color: #fff; font: 600 17px/1 var(--fonte); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.app .peso input:focus { outline: none; }
.app .peso:focus-within { box-shadow: 0 0 0 3px rgba(169, 142, 218, 0.35); }
.toque { font-size: 15px; color: var(--luz-2); }
.toque b { color: var(--luz); font-weight: 600; }
.app .peso small { font-size: 10px; color: var(--app-texto-2); font-weight: 400; margin-left: 3px; }
.app .sub { margin: 4px 2px 10px; font-size: 9px; color: var(--app-texto-2); }
.app .rot { display: flex; justify-content: space-between; margin: 0 2px 5px; font-size: 9px; font-weight: 600; color: var(--app-texto-2); }
.app .item { padding: 9px 10px; border-bottom: 1px solid var(--app-linha); background: var(--app-cartao); }
.app .item:first-of-type { border-radius: 10px 10px 0 0; }
.app .item:last-of-type { border-radius: 0 0 10px 10px; border-bottom: 0; }
.app .nome { font-size: 12px; font-weight: 600; color: #fff; }
.app .apr { font-size: 8.5px; color: var(--app-texto-2); }
.app .dose { margin-top: 4px; display: flex; align-items: baseline; gap: 7px; }
.app .dose .vml { font-size: 17px; font-weight: 700; color: var(--app-roxo); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: color .2s; }
.app .dose .vmg { font-size: 11px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.app .max { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 5px; background: var(--app-alarme-fundo); color: var(--app-alarme); font-size: 8.5px; font-weight: 600; }

/* vídeo */
.video { position: relative; margin: 60px auto 0; max-width: 920px; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: radial-gradient(110% 120% at 50% 0%, #26262a 0%, #0b0b0c 75%); display: grid; place-items: center; }
.play { width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: grid; place-items: center; backdrop-filter: blur(10px); }
.play svg { width: 32px; height: 32px; margin-left: 5px; fill: #fff; }
.video p { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--luz-2); }

/* PDF x Caderno, em imagem */
.versus { margin-top: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); }
.versus figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.versus figcaption { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.versus figcaption span { display: block; font-size: 15px; font-weight: 400; color: var(--tinta-2); letter-spacing: -0.01em; }
.versus .ou { font-size: 15px; color: var(--tinta-2); }
.pdf { width: min(300px, 100%); aspect-ratio: 393 / 520; padding: 28px 26px; border-radius: 10px; background: #fff; border: 1px solid #e3e3e8; transform: rotate(-2deg); font-family: 'Times New Roman', Georgia, serif; color: #8e8e93; filter: grayscale(1); opacity: 0.86; }
.pdf b { display: block; font-size: 13px; color: #6e6e73; margin-bottom: 12px; }
.pdf i { display: block; height: 7px; margin: 9px 0; border-radius: 2px; background: #e5e5ea; }
.pdf .tab { margin: 14px 0; display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: 6px; }
.pdf .tab i { margin: 0; height: 12px; }
.pdf .conta { margin-top: 18px; font-family: 'Noteworthy', 'Marker Felt', 'Bradley Hand', cursive; font-size: 17px; color: #c0392b; transform: rotate(-3deg); filter: none; }
.versus .fone { width: min(250px, 100%); }
@media (max-width: 720px) { .versus { grid-template-columns: 1fr; } .versus .ou { display: none; } }

/* recursos, um por linha */
.recurso { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 96px); }
.recurso + .recurso { margin-top: 120px; }
.recurso.inverso .texto { order: 2; }
.recurso .texto { display: grid; gap: 14px; }
.recurso h3 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 700; }
.recurso p { font-size: clamp(19px, 2.2vw, 21px); color: var(--tinta-2); max-width: 22em; }
.recurso .fone { justify-self: center; width: min(290px, 100%); }
@media (max-width: 760px) { .recurso { grid-template-columns: 1fr; text-align: center; } .recurso.inverso .texto { order: 0; } .recurso p { margin: 0 auto; } .recurso + .recurso { margin-top: 88px; } }

.trio { margin-top: 120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trio div { padding: 34px 30px; border-radius: 26px; background: var(--papel); display: grid; gap: 10px; align-content: start; }
.trio svg { width: 34px; height: 34px; stroke: var(--dose); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trio h3 { font-size: 24px; line-height: 1.15; font-weight: 700; }
.trio p { color: var(--tinta-2); font-size: 17px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }


/* computador e celular */
.duo { margin-top: 64px; position: relative; display: grid; justify-items: center; }
.note { width: min(880px, 100%); }
.note .tampa { padding: 14px 14px 20px; border-radius: 22px 22px 6px 6px; background: #1d1d1f; box-shadow: 0 0 0 1px #3a3a3c inset, 0 30px 80px rgba(0, 0, 0, 0.16); }
.note .tampa img { border-radius: 5px; width: 100%; }
.note .base { height: 18px; margin: 0 -6%; border-radius: 0 0 18px 18px; background: linear-gradient(#d2d2d7, #a1a1a6); }
.duo .fone { position: absolute; right: max(0px, calc(50% - 520px)); bottom: -28px; width: min(200px, 28vw); }
@media (max-width: 720px) { .duo .fone { right: 2%; bottom: -18px; width: 30vw; } }
/* passos */
.passos { list-style: none; padding: 0; margin: 64px auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: p; text-align: center; }
.passos li { display: grid; gap: 6px; justify-items: center; }
.passos li::before { counter-increment: p; content: counter(p); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tinta); color: var(--papel); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.passos h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.passos p { color: var(--tinta-2); font-size: 16px; max-width: 16em; }
@media (max-width: 720px) { .passos { grid-template-columns: 1fr; } }

/* planos */
.planos { margin: 64px auto 0; max-width: 820px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plano { padding: 40px 36px; border-radius: 28px; background: var(--papel); border: 1px solid var(--linha); display: grid; gap: 6px; align-content: start; }
.plano.anual { border: 2px solid var(--dose); }
.plano h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.plano .selo { justify-self: start; padding: 4px 10px; border-radius: 980px; background: var(--dose-fundo); color: var(--dose); font-size: 13px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.preco { margin-top: 12px; font-size: 52px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.preco small { font-size: 19px; font-weight: 500; color: var(--tinta-2); letter-spacing: -0.01em; margin-left: 4px; }
.plano .nota { color: var(--tinta-2); font-size: 15px; min-height: 2.9em; }
.plano .botao { margin-top: 22px; }
.plano.mensal .botao { background: var(--tinta); color: var(--papel) !important; }
@media (max-width: 720px) { .planos { grid-template-columns: 1fr; } }

/* perguntas */
.perguntas { margin: 56px auto 0; max-width: 760px; }
.perguntas details { border-top: 1px solid var(--linha); }
.perguntas details:last-child { border-bottom: 1px solid var(--linha); }
.perguntas summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: 1; color: var(--tinta-2); transition: transform .2s; }
.perguntas details[open] summary::after { transform: rotate(45deg); }
.perguntas details p { padding-bottom: 24px; color: var(--tinta-2); max-width: 40em; }

/* fim */
.fim { text-align: center; background: radial-gradient(60% 70% at 50% 100%, #0a2a66 0%, rgba(10, 42, 102, 0) 70%), var(--noite); color: var(--luz); }
.fim .botao { margin-top: 34px; }
.rodape { padding-block: 40px 56px; background: var(--nevoa); color: var(--tinta-2); font-size: 13px; }
.rodape .largura { display: grid; gap: 14px; }
.rodape .aviso { padding-bottom: 16px; border-bottom: 1px solid var(--linha); max-width: 62em; }
.rodape .linha-fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape nav a { color: var(--tinta-2); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.pdf i.w64 { width: 64%; } .pdf i.w70 { width: 70%; } .pdf i.w82 { width: 82%; }
.barra .link-entrar { color: var(--luz); font-size: 13px; opacity: 0.85; margin-left: 4px; }
@media (max-width: 720px) { .barra .link-entrar { margin-left: auto; } .barra .entrar { margin-left: 14px; } }
.marca { white-space: nowrap; }
@media (max-width: 400px) { .barra .largura { gap: 14px; } .barra .entrar { margin-left: 10px; } }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* páginas legais */
.pagina-legal { background: var(--papel); }
.legal { padding-block: 56px 80px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--tinta); font-size: 17px; line-height: 1.6; }
.legal p { margin: 10px 0; }
.legal ul { padding-left: 22px; }
.legal .aviso-rascunho { padding: 12px 16px; border-radius: 12px; background: var(--dose-fundo); color: var(--tinta); }
.legal .tabela { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { border-top: 1px solid var(--linha); padding: 10px 8px; text-align: left; vertical-align: top; }
.nao-achou { min-height: 70vh; display: grid; align-content: center; text-align: center; }
