:root { --bg: #F6F4EE; --surface: #FFFFFF; --border: #E3DFD5; --text: #1C1B19; --muted: #5F5B54; --accent: #0F766E; }
@media (prefers-color-scheme: dark) { :root { --bg: #161614; --surface: #1F1E1B; --border: #34322D; --text: #ECE9E1; --muted: #A9A398; --accent: #2DB3A6; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, "Segoe UI", sans-serif; }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 28px; padding-bottom: 12px; }
header img { width: 44px; height: 44px; border-radius: 10px; }
header a { color: var(--text); text-decoration: none; font-size: 22px; font-weight: 700; }
nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
nav a { font-size: 14px; font-weight: 500; color: var(--muted); }
h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 8px; }
h2 { font-size: 20px; margin: 32px 0 8px; }
a { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.muted { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 16px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.card h2:first-child { margin-top: 4px; }

/* ---------- página inicial (estilo Notion) ---------- */
.home { --soft: #EFECE4; --hl: #FDE68A; }
@media (prefers-color-scheme: dark) { .home { --soft: #2A2925; --hl: #A16207; } }
.home header, .home main, .home footer { max-width: 1080px; }
.home header { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: 14px; flex-wrap: wrap; }
.home header > a { font-size: 20px; }
.home header img { width: 34px; height: 34px; }
.home nav { margin-left: 24px; }
.home nav a { text-decoration: none; }
.auth { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-block; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 8px; padding: 6px 14px; font-size: 14px !important; font-weight: 600 !important; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.big { padding: 10px 20px; font-size: 16px !important; margin: 4px 6px 4px 0; }
.btn:hover { opacity: .88; }
.home h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.02em; margin: 0 0 12px; }
.home h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; line-height: 1.2; margin: 6px 0 12px; }
.home h3 { font-size: 17px; margin: 8px 0 4px; }
.home section { padding: 48px 0; }
.center { text-align: center; }
p.center { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding-top: 56px !important; }
.luna { height: auto; max-width: 200px; justify-self: center; }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; border-top: 1px solid var(--border); }
.feature.rev > :first-child { order: 2; }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.demo.page { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.chip { display: inline-block; background: var(--soft); border-radius: 6px; padding: 2px 8px; font-size: 13px; margin: 4px 6px 0 0; }
.chip.ok { color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0; }

/* títulos personalizados */
.titles { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.t { font-weight: 700; font-size: 18px; color: #7C3AED; }
.t-faixa { background: #7DD3FC; color: #1E3A8A; text-transform: uppercase; letter-spacing: .08em; padding: 4px 22px; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%); }
.t-nuvem { font-family: Caveat, "Segoe Print", cursive; font-size: 24px; border: 2px dashed currentColor; border-radius: 999px; padding: 0 14px; }
.t-marca { color: var(--text); font-family: Georgia, serif; background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 4px; }
.t-sombra { font-family: Fredoka, system-ui, sans-serif; text-transform: uppercase; text-shadow: 2px 2px 0 #C4B5FD; }
.t-pilula { font-family: Fredoka, system-ui, sans-serif; text-transform: uppercase; color: #134E4A; background: #99F6E4; border-radius: 999px; padding: 2px 14px; }
.t-seta { color: #fff; background: #0F766E; padding: 3px 26px 3px 12px; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
.t-moldura { color: var(--text); letter-spacing: .12em; text-transform: uppercase; border: 2px solid currentColor; padding: 2px 12px; font-weight: 600; }
.t-estrelas { font-family: Caveat, cursive; font-size: 24px; color: #BE185D; }
.t-estrelas::before, .t-estrelas::after { content: "✦"; font-size: 14px; margin: 0 6px; }

/* flashcard no texto */
.doc { font-size: 17px; line-height: 1.9; margin: 0; }
.cloze { font: inherit; color: var(--accent); background: var(--soft); border: 1px dashed var(--accent); border-radius: 6px; padding: 0 8px; cursor: pointer; }
.cloze[aria-expanded="true"] { border-style: solid; font-weight: 600; }

/* capa */
.cover { --cover: #0F766E; height: 150px; border-radius: 10px; display: flex; align-items: flex-end; padding: 16px;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25) 0 60px, transparent 61px), radial-gradient(circle at 90% 90%, rgba(255,255,255,.12) 0 90px, transparent 91px), var(--cover); transition: background-color .2s; }
.cover-title { background: var(--surface); color: var(--text); border-radius: 8px; padding: 4px 12px; font-weight: 700; font-size: 22px; }
.cover-title[data-f="serif"] { font-family: Georgia, serif; }
.cover-title[data-f="mono"] { font-family: ui-monospace, Consolas, monospace; }
.swatches { display: flex; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--text); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; background: transparent; color: var(--text); border: 0; padding: 4px 14px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--accent); color: #fff; }

/* módulos */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.grid.two { grid-template-columns: repeat(3, 1fr); }
.grid article, .grid .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 0; }
.grid article p, .grid .card p, .grid .card li { font-size: 14px; color: var(--muted); margin: 0; }
.grid .card p + p { margin-top: 8px; }
.ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; font-size: 18px; background: color-mix(in srgb, var(--c) 16%, transparent); }

/* integrações */
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 26px; position: relative; margin: 8px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; max-width: 85%; }
.msg.ai { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); }
.msg.ai img { flex: none; }
.ref { background: rgba(255,255,255,.22); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.acts { margin-top: 6px; }

.cta { text-align: center; border-top: 1px solid var(--border); }
.cta img { display: block; margin: 0 auto; }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .feature.rev > :first-child { order: 0; }
  .hero .luna { max-width: 130px; }
  .grid, .grid.two { grid-template-columns: 1fr 1fr; }
  .home nav { display: none; }
}
@media (max-width: 520px) { .grid, .grid.two { grid-template-columns: 1fr; } .demo.page { padding: 16px; } }
.error { color: #B91C1C; text-align: center; }
