.sm-ebook-page {
  background: var(--sm-canvas);
}

.sm-ebook-hero {
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 108, 109, 0.16), transparent 28%),
    linear-gradient(145deg, #f8f3e9 0%, #eef4f1 100%);
}

.sm-ebook-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.sm-ebook-hero h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.91;
}

.sm-ebook-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 38px 0 28px;
}

.sm-ebook-proof > div {
  padding: 18px;
  border: 1px solid rgba(23, 48, 49, 0.12);
  border-radius: var(--sm-radius-sm);
  background: rgba(255, 255, 255, 0.56);
}

.sm-ebook-proof strong,
.sm-ebook-proof span {
  display: block;
}

.sm-ebook-proof strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--sm-teal-dark);
  font-size: 2rem;
}

.sm-ebook-proof span {
  margin-top: 3px;
  color: var(--sm-ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sm-ebook-benefits {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sm-ebook-benefits li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid rgba(23, 48, 49, 0.1);
  color: var(--sm-ink-soft);
}

.sm-ebook-benefits li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--sm-teal);
  font-weight: 900;
}

.sm-ebook-cover-wrap {
  position: relative;
  max-width: 440px;
  justify-self: end;
  perspective: 1200px;
}

.sm-ebook-cover {
  position: relative;
  min-height: 590px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 24px 24px 8px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.1), transparent 38%),
    var(--sm-ink);
  color: #fff;
  box-shadow: 28px 32px 70px rgba(19, 37, 40, 0.24);
  transform: rotateY(-8deg) rotateZ(1deg);
}

.sm-ebook-cover::before,
.sm-ebook-cover::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.sm-ebook-cover::before {
  width: 260px;
  height: 260px;
  right: -100px;
  top: 150px;
  border: 42px solid rgba(72, 174, 171, 0.28);
}

.sm-ebook-cover::after {
  width: 160px;
  height: 160px;
  right: 30px;
  bottom: -70px;
  background: rgba(179, 137, 65, 0.25);
}

.sm-ebook-cover > * {
  position: relative;
  z-index: 1;
}

.sm-ebook-cover__top {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.sm-ebook-cover__number {
  margin-top: 90px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 10rem;
  font-weight: 600;
  line-height: 0.65;
  color: var(--sm-ice);
}

.sm-ebook-cover h2 {
  max-width: 300px;
  margin: 28px 0 0;
  color: #fff;
  font-size: 3.2rem;
  line-height: 0.93;
}

.sm-ebook-cover p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.sm-ebook-cover__line {
  width: 72px;
  height: 4px;
  margin: 52px 0 18px;
  background: var(--sm-brass);
}

.sm-ebook-cover small {
  display: block;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.sm-ebook-cover-note {
  max-width: 350px;
  margin: 28px auto 0;
  color: var(--sm-ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
}

.sm-ebook-form-section {
  padding: 110px 0;
  background: var(--sm-surface);
}

.sm-ebook-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.sm-ebook-form-intro {
  position: sticky;
  top: 120px;
}

.sm-ebook-form-intro h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.sm-ebook-form-intro > p:not(.sm-eyebrow) {
  color: var(--sm-ink-soft);
  font-size: 1.1rem;
  line-height: 1.75;
}

.sm-form-trust {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.sm-form-trust > div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-sm);
  background: var(--sm-canvas);
}

.sm-form-trust span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--sm-ice);
  color: var(--sm-teal-dark);
  font-weight: 900;
}

.sm-form-trust p {
  margin: 0;
  color: var(--sm-ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sm-ebook-form {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-lg);
  background: var(--sm-canvas);
  box-shadow: var(--sm-shadow-md);
}

.sm-form-row--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sm-ebook-form label:not(.sm-checkbox) {
  display: grid;
  gap: 9px;
  color: var(--sm-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-ebook-form label small {
  color: var(--sm-ink-soft);
  font-weight: 500;
}

.sm-ebook-form input,
.sm-ebook-form select,
.sm-ebook-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #c9d2ce;
  border-radius: 12px;
  background: #fff;
  color: var(--sm-ink);
  font: inherit;
  font-weight: 500;
}

.sm-ebook-form textarea {
  min-height: 118px;
  resize: vertical;
}

.sm-ebook-form input:focus,
.sm-ebook-form select:focus,
.sm-ebook-form textarea:focus {
  border-color: var(--sm-teal);
  outline: 3px solid rgba(15, 108, 109, 0.15);
}

.sm-ebook-form [aria-invalid="true"] {
  border-color: #b8463f;
}

.sm-form-consents {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.sm-checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--sm-ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.sm-checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.sm-checkbox a {
  color: var(--sm-teal-dark);
  font-weight: 700;
}

.sm-checkbox em {
  color: var(--sm-brass);
}

.sm-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sm-form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sm-form-status.is-visible {
  display: block;
}

.sm-form-status.is-error {
  background: #f9e7e4;
  color: #7d2823;
}

.sm-form-status.is-success {
  background: #e4f1ea;
  color: #21573f;
}

.sm-ebook-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.sm-ebook-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sm-form-fineprint {
  margin: -6px 0 0;
  color: var(--sm-ink-soft);
  font-size: 0.78rem;
  text-align: center;
}

.sm-ebook-preview-section {
  padding: 110px 0;
}

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

.sm-ebook-chapters article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius-md);
  background: var(--sm-surface);
}

.sm-ebook-chapters span {
  color: var(--sm-brass);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.sm-ebook-chapters h3 {
  margin: 42px 0 12px;
  font-size: 2rem;
}

.sm-ebook-chapters p {
  margin: 0;
  color: var(--sm-ink-soft);
  line-height: 1.7;
}

.sm-ebook-boundary {
  padding: 90px 0;
  background: var(--sm-ink);
  color: rgba(255, 255, 255, 0.72);
}

.sm-ebook-boundary__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sm-ebook-boundary h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.96;
}

.sm-ebook-boundary p:not(.sm-eyebrow) {
  font-size: 1.12rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .sm-ebook-hero__grid,
  .sm-ebook-form-grid,
  .sm-ebook-boundary__grid {
    grid-template-columns: 1fr;
  }

  .sm-ebook-cover-wrap {
    justify-self: center;
  }

  .sm-ebook-form-intro {
    position: static;
  }

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

@media (max-width: 680px) {
  .sm-ebook-hero {
    padding: 70px 0;
  }

  .sm-ebook-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .sm-ebook-proof,
  .sm-form-row--two,
  .sm-ebook-chapters {
    grid-template-columns: 1fr;
  }

  .sm-ebook-cover {
    min-height: 510px;
    padding: 32px;
    transform: none;
  }

  .sm-ebook-cover__number {
    margin-top: 70px;
    font-size: 8rem;
  }

  .sm-ebook-form-section,
  .sm-ebook-preview-section {
    padding: 80px 0;
  }
}
