/**
 * VITAL NEXXUS - eBooks
 * Hub e landing pages de captura para materiais ricos.
 */

body.ebook-page {
  background:
    radial-gradient(circle at top left, rgba(95, 168, 163, 0.18), transparent 34%),
    linear-gradient(180deg, #f9fcfb 0%, #eef5f3 100%);
  color: #163029;
}

.ebook-page main {
  display: block;
}

.ebook-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ebook-hero {
  padding: 44px 0 28px;
}

.ebook-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}

.ebook-panel,
.ebook-form-card,
.ebook-card,
.ebook-stat-card,
.ebook-section-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 83, 45, 0.09);
  border-radius: 32px;
  box-shadow: 0 24px 54px rgba(19, 28, 39, 0.08);
}

.ebook-panel {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.ebook-panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 168, 163, 0.22) 0%, rgba(95, 168, 163, 0) 70%);
}

.ebook-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #0e5f56;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ebook-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #5fa8a3 0%, #14532d 100%);
}

.ebook-panel h1,
.ebook-hub-copy h1 {
  color: #0f2d29;
  font-size: clamp(2.2rem, 4vw, 4.35rem);
  line-height: 1.04;
  margin-bottom: 18px;
}

.ebook-panel p,
.ebook-hub-copy p,
.ebook-section-head p,
.ebook-card p,
.ebook-form-note,
.ebook-download-card p,
.ebook-inline-message,
.ebook-section-panel p {
  color: #46625a;
  line-height: 1.75;
}

.ebook-highlight {
  color: #0b6a60;
}

.ebook-chip-row,
.ebook-bullet-list,
.ebook-mini-list,
.ebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ebook-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #edf8f5;
  color: #14532d;
  font-size: 0.92rem;
  font-weight: 700;
}

.ebook-bullet-list {
  margin-top: 24px;
}

.ebook-bullet-item {
  min-width: 210px;
  flex: 1 1 220px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #f6fbfa;
  border: 1px solid rgba(95, 168, 163, 0.18);
}

.ebook-bullet-item strong,
.ebook-card h3,
.ebook-section-panel h3,
.ebook-form-card h2,
.ebook-download-card h3 {
  color: #12342e;
}

.ebook-bullet-item span {
  color: #577068;
  font-size: 0.95rem;
}

.ebook-cover-card {
  margin-top: 28px;
  display: grid;
  gap: 20px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg, #0d3b2f 0%, #123f34 48%, #185f55 100%);
  color: #f7fffd;
  align-items: start;
}

.ebook-cover-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  justify-self: center;
  display: block;
  border-radius: 24px;
  box-shadow: 0 28px 42px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.ebook-cover-caption {
  display: grid;
  gap: 14px;
}

.ebook-cover-card small {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ebook-cover-card strong {
  display: block;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.05;
}

.ebook-cover-card p {
  color: rgba(247, 255, 253, 0.84);
  margin: 0;
}

.ebook-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 700;
}

.ebook-form-card {
  padding: 30px;
  align-self: start;
}

.ebook-form-card h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.ebook-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ebook-field {
  display: grid;
  gap: 7px;
}

.ebook-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #27453e;
}

.ebook-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d4e3dc;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 0.98rem;
  color: #173730;
  background: #fbfdfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ebook-field input:focus {
  outline: none;
  border-color: #1d7464;
  box-shadow: 0 0 0 4px rgba(95, 168, 163, 0.16);
  background: #fff;
}

.ebook-button,
.ebook-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ebook-button {
  background: linear-gradient(135deg, #0d5e50 0%, #14532d 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(13, 94, 80, 0.2);
}

.ebook-button:hover,
.ebook-secondary-button:hover {
  transform: translateY(-2px);
}

.ebook-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.ebook-secondary-button {
  background: #eff6f3;
  color: #14532d;
  border: 1px solid rgba(20, 83, 45, 0.12);
}

.ebook-form-note {
  font-size: 0.88rem;
  margin: 0;
}

.ebook-inline-message {
  min-height: 24px;
  margin: 2px 0 0;
  font-size: 0.94rem;
}

.ebook-inline-message.success {
  color: #166534;
}

.ebook-inline-message.error {
  color: #b91c1c;
}

.ebook-download-card {
  margin-top: 18px;
  display: none;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(95, 168, 163, 0.13) 0%, rgba(20, 83, 45, 0.08) 100%);
  border: 1px solid rgba(20, 83, 45, 0.12);
}

.ebook-download-card.is-visible {
  display: grid;
}

.ebook-download-card p {
  margin: 0;
}

.ebook-section {
  padding: 26px 0 10px;
}

.ebook-section-head {
  max-width: 720px;
  margin-bottom: 20px;
}

.ebook-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  color: #12332e;
  margin-bottom: 12px;
}

.ebook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ebook-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ebook-card {
  padding: 26px;
}

.ebook-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.ebook-card strong {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef7f4;
  color: #14532d;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ebook-section-panel {
  padding: 34px;
}

.ebook-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: center;
}

.ebook-tags span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef7f4;
  color: #14532d;
  font-size: 0.88rem;
  font-weight: 700;
}

.ebook-hub-hero {
  padding: 46px 0 24px;
}

.ebook-hub-copy {
  max-width: 760px;
  margin-bottom: 20px;
}

.ebook-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.ebook-stat-card {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.ebook-stat-card strong {
  font-size: 2.3rem;
  color: #0d5e50;
  line-height: 1;
}

.ebook-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ebook-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.ebook-list li {
  list-style: none;
  position: relative;
  padding-left: 18px;
  color: #46625a;
}

.ebook-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fa8a3;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .ebook-hero-grid,
  .ebook-hub-grid,
  .ebook-cta-grid,
  .ebook-grid,
  .ebook-grid.two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ebook-shell {
    width: min(100% - 24px, 100%);
  }

  .ebook-panel,
  .ebook-form-card,
  .ebook-card,
  .ebook-stat-card,
  .ebook-section-panel {
    border-radius: 24px;
  }

  .ebook-panel,
  .ebook-form-card,
  .ebook-card,
  .ebook-stat-card,
  .ebook-section-panel {
    padding: 22px;
  }

  .ebook-hero {
    padding-top: 28px;
  }

  .ebook-bullet-item {
    min-width: 100%;
  }

  .ebook-button,
  .ebook-secondary-button {
    width: 100%;
  }
}
