:root {
  --cream: #f5f4ec;
  --sand: #e5e3d8;
  --violet: #b289ff;
  --pink: #ff5581;
  --ink: #191c1f;
  --muted: #727272;
  --white: #ffffff;
  --line: rgba(25, 28, 31, 0.12);
  --shadow: 0 30px 80px rgba(52, 33, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

.framed-image {
  width: 100%;
  border: 3px solid var(--violet);
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(52, 33, 76, 0.12);
}

.framed-image--hero {
  height: 600px;
  border-radius: 320px 320px 0 0;
}

.framed-image--author {
  height: 550px;
  border-radius: 320px 320px 0 0;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #efede3 100%);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 48px;
  align-items: end;
  min-height: 100vh;
  padding: 88px 0 32px;
}

.hero-copy {
  padding-bottom: 48px;
}

.eyebrow,
.popup-kicker {
  margin: 0 0 14px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.25rem);
  color: #4e4e4e;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #4e4e4e;
}

.hero-line {
  width: min(100%, 540px);
  height: 2px;
  margin: 26px 0 28px;
  background: var(--violet);
}

.lead,
.section-copy,
.author-copy p,
.offer-devices p,
.faq-item p,
.popup-text,
.popup-note {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 34px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(25, 28, 31, 0.14);
}

.btn--accent {
  background: var(--pink);
  color: var(--white);
}

.btn--dark {
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.image-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  border: 2px dashed rgba(178, 137, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at top, rgba(178, 137, 255, 0.18), transparent 45%);
  color: #6a5c84;
  text-align: center;
}

.image-slot span,
.video-placeholder span {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.image-slot small,
.video-placeholder small {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.image-slot--hero,
.image-slot--author {
  min-height: 560px;
  border-radius: 320px 320px 0 0;
}

.section {
  padding: 120px 0;
}

.section--muted {
  background: var(--sand);
}

.section--accent {
  background: var(--violet);
}

.section-stack,
.faq-stack {
  display: grid;
  gap: 32px;
}

.section-header {
  display: grid;
  gap: 12px;
}

.section-header--center {
  justify-items: center;
  text-align: center;
}

.section-copy--wide {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.video-card {
  padding-top: 12px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--violet);
  background: #000;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.author-copy {
  display: grid;
  gap: 18px;
}

.offer-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.offer-devices,
.offer-card {
  padding: 40px;
  background: rgba(245, 244, 236, 0.96);
}

.offer-devices {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 24px;
}

.image-slot--devices {
  width: min(100%, 520px);
  min-height: 260px;
  border-radius: 28px;
}

.devices-image {
  width: min(260px, 100%);
  border-radius: 999px;
  object-fit: contain;
}

.offer-card {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.offer-old-price {
  margin: 0;
  color: #e91e63;
  font-size: 1.1rem;
  text-decoration: line-through;
  font-weight: 700;
}

.offer-installments,
.offer-caption {
  margin: 12px 0 0;
  color: #4e4e4e;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  color: #4e4e4e;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 24px;
  max-width: 80ch;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.popup-card {
  position: relative;
  width: min(540px, 100%);
  display: block;
  padding: 30px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.popup-content {
  display: grid;
  align-content: start;
}

.popup-content h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lead-form label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.lead-form input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #c9ced4;
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(178, 137, 255, 0.14);
}

.form-message {
  min-height: 24px;
  margin: 4px 0 0;
  color: #d14b52;
  font-size: 0.95rem;
}

.subtle-link {
  justify-self: center;
  color: #6d655c;
  text-decoration: none;
  font-size: 0.92rem;
}

.popup-note {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.exit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
}

.exit-popup {
  position: relative;
  width: min(980px, 100%);
  overflow: hidden;
  background: #004090;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 20px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 3.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.exit-popup-close:hover {
  color: var(--white);
  transform: scale(1.04);
}

.exit-popup-header {
  padding: 58px 54px 46px;
  text-align: center;
}

.exit-popup-header h2 {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
}

.exit-popup-body {
  margin: 0 30px 30px;
  padding: 30px 32px 40px;
  background: var(--white);
  text-align: center;
}

.exit-popup-body h3 {
  margin: 0 0 26px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  color: var(--ink);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 26px;
}

.countdown-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px 12px;
  border-radius: 6px;
  background: #c90000;
  color: var(--white);
  text-transform: uppercase;
}

.countdown-item span {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.countdown-item small {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.82rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}

.exit-popup-body p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .hero-grid,
  .split-section,
  .offer-panel,
  .popup-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 72px 0 32px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .image-slot--hero,
  .image-slot--author,
  .framed-image--hero,
  .framed-image--author {
    min-height: 360px;
    height: 360px;
  }
}

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

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .offer-devices,
  .offer-card,
  .popup-card {
    padding: 24px;
  }

  .faq-item summary {
    font-size: 1.25rem;
  }

  .exit-popup-header {
    padding: 58px 20px 32px;
  }

  .exit-popup-body {
    margin: 0 14px 14px;
    padding: 24px 14px 30px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .exit-popup-close {
    right: 12px;
    font-size: 2.6rem;
  }
}
