/* makespan · site. Cores, pesos e voz seguem o guia de marca v1.0. */

@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(/fonts/poppins-300.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }

:root {
  --tinta: #0A0A0A;
  --papel: #FFFFFF;
  --n600: #616161; /* texto secundário sobre papel */
  --n400: #9E9E9E; /* texto secundário sobre tinta */
  --n200: #CCCCCC;
  --n150: #D9D9D9;
  --largura: 1080px;
  --margem: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font: 300 1rem/1.65 Poppins, system-ui, sans-serif; color: var(--tinta); background: var(--papel); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
b, strong { font-weight: 700; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.escuro { background: var(--tinta); color: var(--papel); }

/* topo */
.topo { padding: 28px 0; }
.topo .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topo img { width: 148px; }
.topo nav a { font-size: .8125rem; font-weight: 400; text-decoration: none; letter-spacing: .04em; }
.topo nav a:hover { text-decoration: underline; }

/* tipografia */
.rotulo { display: block; font-size: .75rem; font-weight: 300; letter-spacing: .2em; color: var(--n600); margin-bottom: 20px; }
.escuro .rotulo { color: var(--n400); }
h1, h2 { font-weight: 300; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin-bottom: 24px; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 36em; }
.sec { color: var(--n600); }
.escuro .sec { color: var(--n400); }
p + p { margin-top: 1em; }

/* botões: um preenchido por tela, o resto em contorno */
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-block; padding: 13px 26px; border: 1px solid currentColor; border-radius: 999px;
  font-size: .9375rem; font-weight: 400; text-decoration: none; transition: opacity .11s; }
.btn-cheio { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.btn[aria-disabled="true"] { cursor: default; }
a.btn:hover { opacity: .8; }

/* herói */
.heroi { padding: 40px 0 112px; }
.heroi .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.heroi .lead { margin-top: 28px; color: var(--n200); }
/* ciclo de demonstração (home.js): escuro no foco, claro no descanso, como no app */
.app { border: 1px solid #2A2A2A; border-radius: 28px; padding: 28px; background: #111; color: var(--papel);
  transition: background .45s, color .45s, border-color .45s; }
.app li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #2A2A2A;
  font-size: .9375rem; color: var(--n400); }
.app .rotulo { font-size: 1.0625rem; font-weight: 700; letter-spacing: normal; color: inherit; margin-bottom: 12px; }
.app li:last-child { border-bottom: 1px solid #2A2A2A; }
.app li.agora { color: inherit; font-weight: 400; }
.app li.feita span { text-decoration: line-through; }
.app li small { font-variant-numeric: tabular-nums; }
.a-crono { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 300; letter-spacing: .04em; font-variant-numeric: tabular-nums;
  text-align: center; margin: 22px 0 6px; line-height: 1.2; }
.a-crono.texto { font-size: 1.6rem; letter-spacing: 0; }
.a-estado { text-align: center; font-size: .8125rem; color: var(--n400); min-height: 1.5em; }
.a-barra { height: 4px; background: #2A2A2A; border-radius: 4px; overflow: hidden; margin: 14px 0 20px; }
.a-barra i { display: block; height: 100%; width: 0; background: currentColor; }
.a-btn { display: block; width: 100%; padding: 13px; border-radius: 999px; border: 1px solid currentColor;
  font: inherit; font-size: .9375rem; color: inherit; background: none; cursor: pointer; }
.a-btn:disabled { opacity: .35; cursor: default; }
.app.descanso { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.app.descanso li, .app.descanso .a-estado { color: var(--n600); }
.app.descanso li, .app.descanso li:last-child { border-color: var(--n150); }
.app.descanso .a-barra { background: var(--n150); }

/* comparativo pomodoro × makespan (home.js) */
.comparativo { margin-top: 56px; }
.trilha { margin-top: 22px; }
.trilha h3 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.trilha h3 span { font-weight: 300; color: var(--n600); font-variant-numeric: tabular-nums; }
.barra { position: relative; height: 44px; border-radius: 8px; background: #F1F1F1; overflow: hidden; }
.barra i { position: absolute; top: 0; bottom: 0; }
.barra .foco { background: var(--tinta); }
.barra .pausa { background: repeating-linear-gradient(45deg, var(--n200) 0 6px, var(--papel) 6px 12px); }
.barra .corte { width: 3px; background: var(--papel); }
.barra .corte::after { content: ""; position: absolute; top: -2px; left: -4px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--tinta); border: 2px solid var(--papel); }
.b-controle { margin-top: 28px; }
.b-controle label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.b-controle output { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-controle input { width: 100%; margin-top: 10px; accent-color: var(--tinta); }
.b-legenda { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; font-size: .8125rem; color: var(--n600); }
.b-legenda span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.b-legenda .l1::before { background: var(--tinta); }
.b-legenda .l2::before { background: repeating-linear-gradient(45deg, var(--n200) 0 3px, var(--papel) 3px 6px); border: 1px solid var(--n200); }
.b-legenda .l3::before { border-radius: 50%; background: var(--tinta); }

/* seções */
.secao { padding: 112px 0; }
.secao + .secao { border-top: 1px solid var(--n150); }
.secao.escuro, .secao.escuro + .secao { border-top: 0; }
.escuro .estudos li { border-color: #2A2A2A; }
.escuro .estudos li::before, .escuro .estudos cite { color: var(--n400); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duas img { width: 100%; max-width: 420px; justify-self: center; }

.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; margin-top: 56px; }
.passos li { border-top: 2px solid var(--tinta); padding-top: 20px; }
.passos .num { display: block; font-size: 2.5rem; line-height: 1; margin-bottom: 20px; }
.passos img { width: 100%; max-width: 220px; margin-top: 24px; }
.passos p { font-size: .9375rem; color: var(--n600); }

.estudos { margin-top: 40px; counter-reset: e; }
.estudos li { counter-increment: e; display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 20px 0; border-top: 1px solid var(--n150); }
.estudos li::before { content: counter(e, decimal-leading-zero); color: var(--n600); }
.estudos cite { font-style: normal; color: var(--n600); white-space: nowrap; }
.nota { margin-top: 32px; padding: 24px; border-radius: 12px; background: var(--tinta); color: var(--papel); max-width: 40em; }

.pro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.pro-lista { display: grid; gap: 22px; margin-top: 40px; }
.pro-lista li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.pro-lista .ico { margin-top: 2px; }
.tons { justify-self: center; width: 100%; max-width: 300px; }
.celular { display: block; width: 100%; height: auto; }
.celular .fundo { transition: none; }
.celular.pump { animation: pump .32s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pump { 0% { transform: scale(.965); } 100% { transform: scale(1); } }
.celular { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .celular.pump { animation: none; } }
.pro-lista b { display: block; font-weight: 600; }
.pro-lista span { font-size: .9375rem; color: var(--n600); }
.logo-pro { display: block; width: auto; height: 34px; margin-bottom: 24px; }
.junto { white-space: nowrap; }
/* verde do teste grátis, o mesmo do paywall do app */
.gratis { display: inline-block; margin-top: 36px; padding: 10px 22px; border-radius: 999px; background: #2E7D32; color: var(--papel); font-weight: 700; }
p.preco-nota { margin-top: 10px; font-size: .875rem; font-style: italic; color: var(--n600); }

.chamada { padding: 104px 0; }
.chamada .lead { color: var(--n200); }

/* rodapé */
.rodape { padding: 56px 0 48px; border-top: 1px solid var(--n150); font-size: .875rem; }
.rodape .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.rodape img { width: 128px; margin-bottom: 10px; }
.rodape ul { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.rodape a { text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* páginas de texto (privacidade, termos) */
.doc { max-width: 720px; padding: 32px var(--margem) 96px; margin: 0 auto; font-weight: 400; font-size: .9875rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 8px; }
.doc .data { color: var(--n600); margin-bottom: 40px; }
.doc h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin: 40px 0 12px; }
.doc ul { list-style: disc; padding-left: 1.25em; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc .resumo { padding: 20px 24px; border-left: 3px solid var(--tinta); background: #F4F4F4; }
.topo.claro { border-bottom: 1px solid var(--n150); }

/* celular */
@media (max-width: 860px) {
  .passos { grid-template-columns: 1fr 1fr; }
  .heroi .wrap, .duas, .pro { grid-template-columns: 1fr; }
  .tons { max-width: 240px; }
  .duas img { max-width: 300px; }
}
@media (max-width: 560px) {
  :root { --margem: 20px; }
  .secao, .chamada { padding: 72px 0; }
  .heroi { padding: 24px 0 80px; }
  .app { padding: 20px; }
  .passos { grid-template-columns: 1fr; }
  .passos img { max-width: 180px; }
  .estudos li { grid-template-columns: 40px 1fr; }
  .estudos cite { white-space: normal; }
  .rodape .wrap { flex-direction: column; }
}

/* faixa de idioma (lang.js) */
.faixa-idioma { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 14px var(--margem); background: var(--tinta); color: var(--papel); font-size: .9rem; border-top: 1px solid var(--n600); }
.faixa-idioma a { font-weight: 600; }
.faixa-idioma button { font: inherit; color: var(--n400); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
body:has(.faixa-idioma) { padding-bottom: 96px; } /* o rodapé não fica escondido atrás da faixa */
