/* Professor Alexandre Zamboni — estilo Apple
   Tipografia, espaço generoso, foco no produto. */

:root {
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --bg-dark: #000000;
  --bg-section: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --ink-mute: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #008a05;
  --orange: #ff6a00;
  --radius-sm: 8px;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --container: 1100px;
  --container-wide: 1280px;
  --ease: cubic-bezier(0.42, 0, 0.58, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Header ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,253,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand strong { font-weight: 600; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 92px 22px 56px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 12px;
}
.hero p.lead {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.35;
}
.hero .meta {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ===== Sections ===== */
section { padding: 72px 22px; }
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.1;
}
.section-sub {
  text-align: center;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===== Grid de ebooks (home) ===== */
.grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card .cover-wrap {
  aspect-ratio: 3 / 4;
  background: var(--bg-section);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card .cover-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .cover-wrap img { transform: scale(1.04); }
.card .body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.card .body h3 {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--ink);
}
.card .body p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}
.card .price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto;
}
.card .price {
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.card .price small { font-size: 12px; color: var(--ink-mute); font-weight: 400; display: block; margin-top: 2px; }
.card .arrow {
  font-size: 13px; color: var(--blue); font-weight: 500;
}

/* ===== Página de produto ===== */
.product {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 22px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product .cover-side {
  display: flex; justify-content: center;
}
.product .cover-side img {
  max-width: 420px; width: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 4px 14px rgba(0,0,0,0.08);
}
.product .info h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 10px;
}
.product .info .subtitle {
  font-size: 20px; color: var(--ink-soft);
  margin-bottom: 22px;
  font-weight: 400;
}
.product .info .descricao {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 26px;
}
.product .info .specs {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.product .info .preco-big {
  font-size: 32px; font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.product .info .parcelado {
  font-size: 15px; color: var(--ink-mute);
  margin-bottom: 28px;
}
.product .info .trust {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-mute);
}
.product .info .trust span { letter-spacing: 0; }
@media (max-width: 768px){
  .product .info .trust { align-items: center; }
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  padding: 12px 26px;
  border-radius: 980px;
  transition: background 0.2s, transform 0.2s;
  min-width: 200px;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn-lg { font-size: 18px; padding: 14px 32px; }
.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover { background: rgba(0,113,227,0.06); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #000; }

/* ===== Fileira horizontal de demais livros ===== */
.outros-wrap {
  background: var(--bg-section);
  padding: 64px 0;
  margin-top: 32px;
}
.outros-wrap h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}
.outros-wrap .sub {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.scroller {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 22px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scroller::-webkit-scrollbar { height: 8px; }
.scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.scroller-inner {
  display: flex;
  gap: 18px;
  padding: 8px 0 24px;
}
.mini-card {
  flex: 0 0 220px;
  background: var(--bg-elev);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.mini-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.mini-card .mc-cover {
  aspect-ratio: 3 / 4;
  background: var(--bg-section);
  overflow: hidden;
}
.mini-card .mc-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.mini-card:hover .mc-cover img { transform: scale(1.05); }
.mini-card .mc-body { padding: 14px 16px 18px; }
.mini-card .mc-body h4 {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 4px;
  min-height: 38px;
}
.mini-card .mc-body .preco {
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.mini-card .mc-body .ver {
  font-size: 12px; color: var(--blue); margin-top: 6px;
}

/* ===== Combo block ===== */
.combo-block {
  background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
  color: #f5f5f7;
  border-radius: 28px;
  padding: 64px 48px;
  max-width: var(--container);
  margin: 64px auto 0;
  text-align: center;
}
.combo-block .badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9f0a;
  margin-bottom: 16px;
  font-weight: 500;
}
.combo-block h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.combo-block p {
  font-size: 19px;
  color: #a1a1a6;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.4;
}
.combo-block .prices {
  display: flex; align-items: baseline; justify-content: center; gap: 16px;
  margin-bottom: 24px;
}
.combo-block .preco-de {
  font-size: 18px; color: #6e6e73;
  text-decoration: line-through;
}
.combo-block .preco-por {
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.02em;
}
.combo-block .economia {
  font-size: 14px;
  color: #ff9f0a;
  margin-bottom: 24px;
  font-weight: 500;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elev);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal h3 {
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal .modal-sub {
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 26px;
}
.modal .item-principal {
  display: flex; gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
  align-items: center;
}
.modal .item-principal img {
  width: 64px; height: 86px;
  object-fit: cover; border-radius: 6px;
}
.modal .item-principal .info { flex: 1; }
.modal .item-principal .info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.modal .item-principal .info .preco { font-size: 16px; font-weight: 500; }
.modal .item-principal .info .small { font-size: 12px; color: var(--ink-mute); }

.bump-card {
  background: linear-gradient(135deg, #fff8e6, #fff3d1);
  border: 2px dashed #ff9f0a;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  position: relative;
}
.bump-card .bump-label {
  display: inline-block;
  background: #ff9f0a;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 10px;
}
.bump-card .bump-content {
  display: flex; gap: 14px;
  align-items: center;
}
.bump-card img {
  width: 56px; height: 76px;
  object-fit: cover; border-radius: 6px;
}
.bump-card .bump-info { flex: 1; }
.bump-card h5 { font-size: 15px; font-weight: 600; line-height: 1.25; margin-bottom: 4px; }
.bump-card .bump-pitch { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; line-height: 1.35; }
.bump-card .preco-de { font-size: 13px; color: var(--ink-mute); text-decoration: line-through; }
.bump-card .preco-por { font-size: 18px; font-weight: 600; color: #b45309; }
.bump-card .check-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.bump-card .check-row input { width: 18px; height: 18px; cursor: pointer; accent-color: #ff9f0a; }

.combo-mini {
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}
.combo-mini .combo-label {
  display: inline-block;
  background: #0071e3;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 980px;
  margin-bottom: 10px;
}
.combo-mini h5 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.combo-mini p { font-size: 13px; color: #a1a1a6; margin-bottom: 10px; line-height: 1.4; }
.combo-mini .prices-mini {
  display: flex; align-items: baseline; gap: 10px;
}
.combo-mini .preco-de { font-size: 13px; color: #6e6e73; text-decoration: line-through; }
.combo-mini .preco-por { font-size: 22px; font-weight: 600; }

.modal-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.modal-actions .btn { width: 100%; }
.btn-text {
  font-size: 14px;
  color: var(--ink-mute);
  padding: 10px;
  text-align: center;
  background: none;
}
.btn-text:hover { color: var(--ink); text-decoration: underline; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--ink-soft);
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0,0,0,0.10); }

.modal-wrapper { position: relative; }

/* ===== Instagram link (sobre o autor) ===== */
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  color: white;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.25);
}
.ig-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(220, 39, 67, 0.32);
  filter: brightness(1.05);
}
.ig-link svg { flex-shrink: 0; }

/* ===== Footer ===== */
footer {
  background: var(--bg-section);
  padding: 32px 22px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 64px;
  line-height: 1.6;
}
footer a { color: var(--ink-soft); }
footer .legal { margin-top: 8px; }
footer .ig-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 13px;
  transition: color 0.2s;
}
footer .ig-footer:hover { color: #dc2743; }
footer .ig-footer svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
footer svg { max-width: 24px; max-height: 24px; }

/* ===== Sobre o autor ===== */
.sobre-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}
.sobre-foto {
  width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}
.sobre-foto img {
  width: 280px;
  max-width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.32), 0 0 0 1px rgba(0,0,0,0.04);
  display: block;
}
.sobre-texto { text-align: left; }
.sobre-texto .ig-link { margin-top: 4px; }

/* Pílula de assinatura */
.ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 10px;
  background: #fff;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%;
}
.ig-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
}
.ig-pill-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  flex: 0 0 auto;
  display: block;
}
.ig-pill-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  display: block;
}
.ig-pill-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.ig-pill-handle {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.ig-pill-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.ig-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  flex: 0 0 auto;
  margin-left: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 56px 18px 36px; }
  section { padding: 48px 18px; }
  .product {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 18px;
  }
  .product .cover-side img { max-width: 280px; }
  .product .info { text-align: center; }
  .combo-block { padding: 44px 24px; border-radius: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card .body { padding: 14px 16px 18px; }
  .card .body h3 { font-size: 17px; }
  .card .body p { font-size: 13px; }
  .mini-card { flex: 0 0 160px; }
  .modal { padding: 24px 20px; border-radius: 20px; }
  .sobre-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .sobre-foto { width: 220px; max-width: 220px; margin: 0 auto; }
  .sobre-foto img { width: 220px; height: 275px; }
  .sobre-texto { text-align: center; }
  .sobre-texto .section-title { text-align: center !important; }
  .ig-pill { gap: 10px; padding: 6px 6px 6px 8px; }
  .ig-pill-avatar { width: 40px; height: 40px; }
  .ig-pill-handle { font-size: 14px; }
  .ig-pill-meta { font-size: 11px; }
  .ig-pill-cta { padding: 8px 12px; font-size: 13px; }
  .ig-pill-cta span { display: none; }
}
