/* Área de membros Letrar. Visual do bio.letrar.link (mesmos tokens, não criar token novo). */

:root {
  --surface-base: #F1F3F9;  --surface-elevated: #FFFFFF;
  --accent: #6057DD;        --accent-hover: #4D3DDB;  --accent-soft: #F0EFFD;
  --text-primary: #1A2340;  --text-secondary: #64748B;
  --border-base: #E2E8F0;   --success: #0E9F6E;       --danger: #C0392B;
  --radius-xl: 12px;        --radius-card: 28px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--surface-base); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
[hidden] { display: none !important; }

.page { max-width: 480px; margin: 0 auto; padding-bottom: 40px; }

/* Topo */
.hero {
  background: linear-gradient(to bottom right, #1A2340, #6057DD);
  color: #fff; border-radius: 0 0 32px 32px;
  padding: 48px 24px 40px; text-align: center;
}
.logo {
  width: 88px; height: 88px; margin: 0 auto 16px;
  background: #fff; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.25); box-shadow: var(--shadow-md);
}
.eyebrow { letter-spacing: .02em; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.hero h1 { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.hero p { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 15px; }

.bloco { padding: 28px 16px 8px; }

/* Entrada */
.caixa {
  background: var(--surface-elevated); border: 1px solid var(--border-base);
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-sm);
}
.rotulo { display: block; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.campo {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--border-base); border-radius: var(--radius-xl);
  font: inherit; font-size: 16px; /* 16px evita zoom no iPhone */
  background: var(--surface-base); color: var(--text-primary);
}
.campo:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(96,87,221,.25); background: #fff; }
.erro { margin-top: 12px; color: var(--danger); font-weight: 600; font-size: 14px; }

.botao {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 50px; margin-top: 16px; padding: 0 20px;
  border: 0; border-radius: var(--radius-xl);
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.botao:hover { background: var(--accent-hover); }
.botao:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(96,87,221,.6); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao-contorno { background: var(--accent-soft); color: var(--accent); }
.botao-contorno:hover { background: #e4e2fb; }
.botao-whats { background: #25D366; color: #fff; }
.botao-whats:hover { background: #1fb858; }

.link-botao {
  display: block; margin: 24px auto 0; padding: 8px;
  border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer;
}
.link-botao:hover { text-decoration: underline; }

/* Cards de produto */
.lista { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--surface-elevated); border: 1px solid var(--border-base);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.card-aberto:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.capa { position: relative; aspect-ratio: 27 / 10; background: var(--accent-soft); overflow: hidden; }
.capa img { width: 100%; height: 100%; object-fit: cover; }
.capa-icone {
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  background: linear-gradient(to bottom right, #1A2340, #6057DD); color: #fff;
}
.capa-icone img { width: 72px; height: 72px; flex: none; border-radius: var(--radius-xl); background: #fff; object-fit: cover; }
.capa-icone strong { font-family: var(--font-display); font-size: 20px; line-height: 1.2; }

.card-bloqueado .capa img { filter: grayscale(.85) brightness(.9); }
.card-bloqueado .capa::after { content: ''; position: absolute; inset: 0; background: rgba(26,35,64,.28); }

.etiqueta {
  position: absolute; z-index: 1; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #fff; box-shadow: var(--shadow-md);
}
.etiqueta-aberto { color: var(--success); }
.etiqueta-fechado { color: var(--text-secondary); }

.card-corpo { padding: 16px 20px 20px; }
.card-corpo h2 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.25; }
.card-corpo p { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.card-corpo .botao { margin-top: 16px; }
.card-corpo .aviso { color: var(--danger); font-weight: 600; }

/* Suporte */
.suporte { margin: 32px 16px 0; padding-top: 24px; border-top: 1px solid var(--border-base); text-align: center; }
.suporte p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 480px) { .hero h1 { font-size: 24px; } }
