/* ============================================================
   Livrete · landing page
   Design System v1 do app: papel, tinta e um marcador.
   Superfícies brancas, bordas de 1px no repouso, Geist e um
   único accent vivo (violeta das pessoas, verde-água da IA).
   ============================================================ */

:root {
  color-scheme: light;
  --background: #ffffff;
  --muted-bg: #f7f7f8;
  --card: #ffffff;
  --foreground: #18171c;
  --text-2: #5e5d66;
  --text-3: #45444d;
  --muted-foreground: #75747d;
  --subtle: #9a99a3;
  --border: #e9e8ee;
  --border-strong: #d3d0de;
  --input: #e4e3ea;
  --line: #f0eff3;
  --muted: #f2f1f5;
  --hover: #efeef3;

  --accent: #6b4ee6;
  --accent-soft: #f0ecfe;
  --accent-ink: #4b32b8;
  --accent-ring: #ece7fd;
  --ia: #0f7f70;
  --ia-soft: #e2f4f0;

  --ink: #18171c;
  --ink-hover: #2c2b33;
  --success: #eef9f1;
  --success-dot: #2e9e5b;
  --tip: #fbf6ea;
  --tip-foreground: #6b5320;
  --code: #18171c;
  --code-foreground: #eceaf6;
  --code-button: #2e2d35;
  --code-prompt: #8e7bf0;

  --type-list: #f2effe;
  --type-list-fg: #5a3fd6;
  --type-note: #fdf3e3;
  --type-note-fg: #94560a;
  --type-skill: #e4f5f1;
  --type-skill-fg: #0b6f62;
  --type-design: #fcebf2;
  --type-design-fg: #a12f66;
  --type-vault: #f2f1f5;
  --type-vault-fg: #18171c;
  --type-memory: #e2f4f0;
  --type-memory-fg: #0b6f62;

  --shadow-hover: 0 10px 30px -14px rgb(24 23 28 / 0.22);
  --shadow-float: 0 30px 80px -24px rgb(24 23 28 / 0.35);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
}
code,
pre {
  font-family: var(--font-mono);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection {
  background: var(--accent-ring);
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
}
.accent {
  color: var(--accent);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dot-success {
  background: var(--success-dot);
}
.dot-ia {
  background: var(--ia);
}
[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
}

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn [data-lucide] {
  width: 16px;
  height: 16px;
}
.btn-lg {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: var(--ink-hover);
}
.btn-outline {
  background: var(--card);
  border-color: var(--input);
  color: var(--foreground);
}
.btn-outline:hover {
  background: var(--hover);
}
.btn-ghost {
  color: var(--foreground);
}
.btn-ghost:hover {
  background: var(--hover);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: #ecebf0;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--muted);
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Ícones de tipo (tom suave + ícone) ─────────────────── */
.type-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
}
.type-icon [data-lucide] {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}
.type-list {
  background: var(--type-list);
  color: var(--type-list-fg);
}
.type-note {
  background: var(--type-note);
  color: var(--type-note-fg);
}
.type-skill {
  background: var(--type-skill);
  color: var(--type-skill-fg);
}
.type-design {
  background: var(--type-design);
  color: var(--type-design-fg);
}
.type-vault {
  background: var(--type-vault);
  color: var(--type-vault-fg);
}
.type-memory {
  background: var(--type-memory);
  color: var(--type-memory-fg);
}

/* ── Navegação ──────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.landing-nav.scrolled {
  border-bottom-color: var(--border);
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}
.brand-mark {
  flex-shrink: 0;
}
.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 auto 0 12px;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-3);
}
.nav-links > li > a:not(.btn):hover {
  background: var(--hover);
  color: var(--foreground);
}
.nav-links-cta {
  display: none;
}
.nav-links .btn-ink {
  color: #fff;
}
.nav-links .btn-outline {
  color: var(--foreground);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--text-3);
  cursor: pointer;
}
.nav-toggle:hover {
  background: var(--hover);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.pill-intro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  color: var(--text-3);
}
.pill-tag {
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--type-list);
  color: var(--type-list-fg);
  font-weight: 500;
}
.hero-title {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-subtitle {
  margin-top: 20px;
  max-width: 560px;
  font-size: 18px;
  color: var(--text-2);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}

.hero-visual {
  position: relative;
}
.mock-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-float);
}
.mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-head .type-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.mock-head .type-icon [data-lucide] {
  width: 16px;
  height: 16px;
}
.mock-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.mock-seg {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}
.mock-seg span {
  padding: 5px 10px;
  border-radius: 8px;
}
.mock-seg .on {
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 1px 2px rgb(24 23 28 / 0.1);
}
.mock-title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.mock-progress {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
}
.mock-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.mock-progress .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}
.mock-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mock-steps li {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.mock-steps li > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.mock-steps li.done {
  background: #fafafb;
}
.check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid #d6d4dd;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}
.done .check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.check [data-lucide] {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}
.step-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.done .step-title {
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--code);
  border-radius: 10px;
  padding: 7px 7px 7px 12px;
  font-size: 12.5px;
}
.cmd .prompt {
  color: var(--code-prompt);
  font-family: var(--font-mono);
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--code-foreground);
}
.cmd .copy {
  flex-shrink: 0;
  background: var(--code-button);
  color: var(--code-foreground);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 500;
}
.tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--tip);
  color: var(--tip-foreground);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
}
.tip [data-lucide] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
}
.mock-float {
  position: absolute;
  left: -24px;
  bottom: -34px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.4);
}
.mock-float .dot-ia {
  background: #5bd3c2;
}
.mock-float b {
  font-weight: 600;
}

/* ── Seções ─────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-muted {
  background: var(--muted-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin-top: 10px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-subtitle {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-2);
}

.card-base,
.step-card,
.feature-card,
.soon-card,
.mode-card,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.step-card,
.feature-card {
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.step-card:hover,
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-card {
  padding: 24px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.step-card h3,
.feature-card h3 {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.step-card p,
.feature-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-2);
}
.feature-card code,
.step-card code {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 5px;
  font-size: 0.86em;
  color: var(--foreground);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  padding: 22px;
}

/* ── Modos e IA ─────────────────────────────────────────── */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.mode-card {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
}
.mode-card .brand-mark {
  grid-row: span 2;
  align-self: start;
}
.mode-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.mode-card p {
  font-size: 14.5px;
  color: var(--text-2);
}
.ai-block {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 36px;
}
.ai-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #b9a9f7;
}
.ai-copy h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ai-copy p {
  margin-top: 12px;
  font-size: 15.5px;
  color: #c9c7d1;
}
.ai-chips {
  margin: 20px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-chips span {
  border: 1px solid #33323b;
  background: #232229;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: #e4e2ee;
}
.ai-terminal {
  margin: 0;
  overflow-x: auto;
  background: #232229;
  border: 1px solid #33323b;
  border-radius: 16px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: #e4e2ee;
}
.ai-terminal .who {
  color: #b9a9f7;
}
.ai-terminal .who.ia {
  color: #7fd6c8;
}

/* ── Em breve ───────────────────────────────────────────── */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.soon-card {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.soon-card > div {
  flex: 1;
  min-width: 0;
}
.soon-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.soon-card p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  color: var(--muted-foreground);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-2);
}

/* ── CTA final ──────────────────────────────────────────── */
.cta-box {
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--accent-ring);
  background: var(--accent-soft);
  padding: 64px 32px;
}
.cta-box h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.cta-box p {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 17px;
  color: var(--text-3);
}
.cta-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ── Rodapé ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--background);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: 32px;
}
.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.footer-links ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-3);
}
.footer-links a:hover {
  color: var(--foreground);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ── Páginas legais ─────────────────────────────────────── */
.legal-page {
  padding: 56px 0 96px;
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--text-3);
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-container h1 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--foreground);
}
.legal-meta {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.legal-container h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.legal-container p + p {
  margin-top: 12px;
}
.legal-container ul {
  padding-left: 22px;
}
.legal-container a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-container strong {
  color: var(--foreground);
  font-weight: 600;
}

/* ── Animação de entrada ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    max-width: 560px;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-block {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .nav-container {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    margin: 4px 0 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    min-height: 44px;
  }
  .nav-links-cta {
    display: block;
    margin-top: 6px;
  }
  .nav-links-cta .btn {
    justify-content: center;
  }
}
@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 64px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .mock-float {
    left: 12px;
    right: 12px;
    max-width: none;
  }
  .mock-seg {
    display: none;
  }
  .section {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .steps-grid,
  .features-grid,
  .modes,
  .soon-grid {
    grid-template-columns: 1fr;
  }
  .ai-block {
    padding: 24px;
    border-radius: 20px;
  }
  .cta-box {
    padding: 44px 20px;
  }
  .cta-actions .btn {
    flex: 1 1 100%;
  }
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}
