/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-padding-top: 64px;
}

body {
  font-family: "Montserrat", "Montserrat Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
  will-change: background, box-shadow;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 28px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.header__link:hover {
  color: #1a1a2e;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__login {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.header__login:hover {
  color: #1a1a2e;
}

.header__cta-btn {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #4361ee;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.header__cta-btn:hover {
  background: #3451d1;
}

/* Mobile styles consolidated at bottom */

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Animation background — right side, with fade from white */
.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 0;
}

/* White gradient overlay: fades from solid white (left) to transparent (right) */
.hero__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
  z-index: 1;
}

/* Text content — on top, left 60% */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 60%;
  text-align: left;
}

.hero h1 {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__accent {
  display: inline-block;
  padding: 0;
  position: relative;
}

.hero__accent::before {
  content: "";
  position: absolute;
  left: -10px;
  right: -14px;
  bottom: -4px;
  height: 18px;
  background: rgba(67, 97, 238, 0.18);
  border-radius: 8px 3px 6px 2px;
  transform: rotate(-1deg) skewX(-4deg);
  z-index: -1;
}

.hero__accent--orange::before {
  background: rgba(245, 158, 11, 0.45);
}

.hero__accent--purple::before {
  background: rgba(139, 92, 246, 0.45);
}

/* Subtitle with typewriter */
.hero__subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #555;
  margin-bottom: 32px;
  min-height: 1.6em;
}

/* Marker highlight — like a real highlighter pen on paper */
.marker-highlight {
  background: none;
  color: #1a1a2e;
  position: relative;
  display: inline;
  padding: 0 4px;
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-weight: 700;
  font-size: 1.2em;
}

.marker-highlight::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 40%;
  background: var(--marker-color, #facc15);
  opacity: 0.3;
  border-radius: 2px 4px 3px 4px;
  transform: rotate(-0.5deg) skewX(-2deg);
  z-index: -1;
}

/* Multi-line marker support */
.marker-highlight--inline {
  background: none;
  color: #1a1a2e;
  position: relative;
  display: inline;
  padding: 2px 4px;
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(
    to top,
    color-mix(in srgb, var(--marker-color, #facc15) 35%, transparent) 0%,
    color-mix(in srgb, var(--marker-color, #facc15) 35%, transparent) 100%
  );
  background-size: 100% 30%;
  background-repeat: no-repeat;
  background-position: left bottom 0;
}

.marker-highlight--messy {
  padding: 0 14px;
  position: relative;
  display: inline-block;
  background: none;
}

.marker-highlight--messy::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -4px;
  bottom: 6px;
  height: 22px;
  background: color-mix(in srgb, var(--marker-color, #facc15) 50%, transparent);
  border-radius: 12px 3px 8px 2px;
  transform: rotate(-1.5deg) skewX(-6deg);
  z-index: -1;
}

/* Typewriter icon (favicon) */
.typewriter__icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #f0f0f0;
  object-fit: contain;
}

/* Blinking cursor */
.typewriter__cursor {
  font-weight: 300;
  color: #999;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__video {
  position: absolute;
  top: 40px;
  right: 0;
  width: auto;
  height: calc(100% - 40px);
  object-fit: contain;
}

/* Mobile inline video (hidden on desktop) */
.hero__video-inline {
  display: none;
}


/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  transition: background 0.2s, color 0.2s;
}

.btn--primary {
  background: transparent;
  color: #4361ee;
  border: 2px solid #4361ee;
}

.btn--primary:hover {
  background: #4361ee;
  color: #fff;
}

/* Pains */
.pains {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff, #f5f3ff);
}

.pains__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 48px;
}

.pains__card {
  padding: 20px 24px;
  border-radius: 12px;
  background: #fafafa;
  position: relative;
  z-index: 0;
}

.pains__card-title {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pains__card-text {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
}

.pains__cta {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a2e;
  text-align: center;
}

/* Mobile pains styles consolidated at bottom */

/* Solution */
.solution {
  padding: 80px 0;
  background: #f5f3ff;
  position: relative;
}

.solution__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.solution__bg-card {
  position: absolute;
  width: 130px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0.2;
  animation: levitate 4s ease-in-out infinite;
  will-change: translate;
}

.solution__bg-card:nth-child(2) { animation-delay: -0.5s; animation-duration: 4.3s; }
.solution__bg-card:nth-child(3) { animation-delay: -1.2s; animation-duration: 3.7s; }
.solution__bg-card:nth-child(4) { animation-delay: -2.0s; animation-duration: 4.6s; }
.solution__bg-card:nth-child(5) { animation-delay: -0.8s; animation-duration: 5.1s; }
.solution__bg-card:nth-child(6) { animation-delay: -1.6s; animation-duration: 3.9s; }

.solution__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.solution__title {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 0;
}

.solution__subtitle {
  font-size: 18px;
  color: #4a4a5a;
  margin-bottom: 40px;
}

.solution__nopains {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.solution__nopains mark {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  transform: rotate(-1deg) skewX(-2deg);
}

.solution__list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 40px;
}

.solution__item {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.5;
}

.solution__check {
  color: #4361ee;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* Before/After slider row */
.ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  aspect-ratio: 9 / 16;
  background: #e8e8e8;
  user-select: none;
}

.ba-slider__after,
.ba-slider__before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-slider__after img,
.ba-slider__before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-slider__before {
  clip-path: inset(0 80% 0 0);
  z-index: 1;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-slider__line {
  flex: 1;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.ba-slider__knob {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #555;
  flex-shrink: 0;
}

.ba-hint {
  margin-top: 12px;
  font-size: 14px;
  color: #6b6b7b;
}

/* Comparison */
.comparison {
  padding: 80px 0;
}

.comparison__title {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a2e;
}

.comparison__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.comparison__card {
  background: #fafafa;
  border-radius: 14px;
  padding: 24px 20px;
  transition: transform 0.2s;
}

.comparison__card:hover {
  transform: translateY(-4px);
}

.comparison__card--highlight {
  background: #f5f3ff;
  box-shadow: 0 4px 24px rgba(67, 97, 238, 0.12);
  border: 2px solid rgba(67, 97, 238, 0.2);
  position: relative;
}

.comparison__card-name {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

.comparison__card--highlight .comparison__card-name {
  color: #4361ee;
  border-bottom-color: rgba(67, 97, 238, 0.2);
}

.comparison__card-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comparison__label {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison__value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.comparison__value--good {
  color: #059669;
}

.comparison__value--bad {
  color: #9ca3af;
}

.comparison__note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #6b6b7b;
}

/* Product Video */
.product-video {
  padding: 80px 0;
}

.product-video__inner {
  text-align: center;
}

.product-video__title {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

.product-video__player {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.product-video__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-video__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #999;
  font-size: 18px;
  border: 2px dashed #ccc;
  border-radius: 16px;
}

/* Mobile solution styles consolidated at bottom */

/* Offer / CTA */
.offer {
  padding: 80px 0;
  background: #fff8f0;
  position: relative;
}

.offer__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.offer__bg-card {
  position: absolute;
  width: 140px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  opacity: 0.25;
  animation: levitate 4s ease-in-out infinite;
  will-change: translate;
}

.offer__bg-card:nth-child(2) { animation-delay: -0.7s; animation-duration: 4.5s; }
.offer__bg-card:nth-child(3) { animation-delay: -1.4s; animation-duration: 3.8s; }
.offer__bg-card:nth-child(4) { animation-delay: -2.1s; animation-duration: 4.2s; }
.offer__bg-card:nth-child(5) { animation-delay: -0.3s; animation-duration: 5s; }
.offer__bg-card:nth-child(6) { animation-delay: -1.8s; animation-duration: 3.6s; }

@keyframes levitate {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.offer__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.offer__title {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 48px;
  position: relative;
  z-index: 0;
}

.offer__price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer__price {
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 48px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 32px;
  position: relative;
  z-index: 0;
}

.offer__price-mo {
  font-size: 20px;
  font-weight: 600;
  color: #6b6b7b;
}

.offer__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  text-align: left;
}

.offer__features li {
  padding-left: 28px;
  position: relative;
}

.offer__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #4361ee;
  font-weight: 700;
}

.offer__features li strong {
  display: block;
  font-family: "Unbounded", "Unbounded Fallback", cursive;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.offer__features li span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #5a5a6a;
  margin-top: 2px;
}

.btn--filled {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  background: #4361ee;
  color: #fff;
  border: 2px solid #4361ee;
  transition: background 0.2s;
}

.btn--filled:hover {
  background: #3451d1;
}

.offer__guarantee {
  font-size: 14px;
  color: #6b6b7b;
  margin-top: 16px;
}

/* Mobile offer styles consolidated at bottom */

/* Footer */
.footer {
  padding: 32px 0;
  text-align: center;
  color: #6b6b7b;
  font-size: 14px;
  border-top: 1px solid #eee;
}

/* ============================================
   Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__bg {
    display: none;
  }

  .hero__video-inline {
    display: block;
    margin: 24px auto;
    max-width: 700px;
    border-radius: 12px;
    overflow: hidden;
  }

  .hero__video-inline video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
}

/* ============================================
   Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  /* Header */
  .header__nav {
    display: none;
  }

  .header__inner {
    padding: 0 16px;
  }

  .header__login {
    display: none;
  }

  .header__cta-btn {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* Hero */
  .hero {
    padding: 64px 0 20px;
    overflow: visible;
  }

  .hero__bg {
    display: none;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .hero__video-inline {
    display: block;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #f0eef6;
  }

  .hero__video-inline video {
    width: 110%;
    margin-left: -5%;
    height: auto;
    display: block;
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  /* Pains */
  .pains {
    padding: 48px 0;
  }

  .pains__grid {
    gap: 12px;
  }

  .pains__card {
    padding: 16px 18px;
  }

  .pains__card-title {
    font-size: 16px;
  }

  .pains__card-text {
    font-size: 14px;
  }

  .pains__cta {
    font-size: 17px;
  }

  /* Solution */
  .solution {
    padding: 48px 0;
  }

  .solution__bg-card {
    display: none;
  }

  .solution__title {
    font-size: clamp(17px, 5vw, 20px);
  }

  .solution__title mark {
    white-space: normal;
  }

  .solution__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .solution__nopains {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    margin-bottom: 24px;
  }

  .solution__nopains mark {
    font-size: 14px;
  }

  .solution__list {
    margin-bottom: 24px;
    gap: 10px;
  }

  .solution__item {
    font-size: 15px;
    gap: 8px;
  }

  .ba-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 32px auto 0;
  }

  .ba-slider:nth-child(n+2) {
    display: none;
  }

  .ba-hint {
    font-size: 13px;
  }

  /* Comparison */
  .comparison {
    padding: 48px 0;
  }

  .comparison__title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .comparison__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .comparison__card {
    padding: 18px 16px;
  }

  .comparison__card-name {
    font-size: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .comparison__value {
    font-size: 14px;
  }

  .comparison__label {
    font-size: 11px;
  }

  .comparison__card-rows {
    gap: 10px;
  }

  /* Product video */
  .product-video {
    padding: 48px 0;
  }

  .product-video__title {
    font-size: 20px;
  }

  /* Offer */
  .offer {
    padding: 48px 0;
  }

  .offer__bg-card {
    display: none;
  }

  .offer__title {
    font-size: 20px;
    margin-bottom: 32px;
  }

  .offer__price {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .offer__price-mo {
    font-size: 16px;
  }

  .offer__features {
    gap: 10px;
    margin-bottom: 24px;
  }

  .offer__features li strong {
    font-size: 15px;
  }

  .offer__features li span {
    font-size: 13px;
  }

  .btn--filled {
    padding: 14px 36px;
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 24px 0;
  }
}
