.home-page {
  --home-section: clamp(44px, 6.5vw, 64px);
  --home-gap: clamp(18px, 2.5vw, 28px);
  --font-accent: "Shadows Into Light Two", "Segoe Print", cursive;
  background: var(--white);
}

.home-page .site-footer {
  margin-top: 0;
}

.home-main {
  padding: 0;
}

.home-section {
  padding-block: var(--home-section);
}

.home-section--soft {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--white) 100%);
}

.home-section--muted {
  background: #f6f8fb;
}

.home-section__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.home-section__header {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.home-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.home-section__lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

/* Hero */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(ellipse 80% 60% at 75% -10%, rgba(10, 178, 133, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, var(--brand-soft) 0%, var(--white) 92%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 178, 133, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.home-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 900px) {
  .home-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.home-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-accent);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--brand-deep);
}

.home-hero h1 {
  margin: 0 0 1rem;
  max-width: none;
  text-align: left;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-hero__points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.home-hero__points li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.45;
}

.home-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

.home-hero__points strong {
  color: var(--ink);
}

.home-hero__visual img {
  margin-inline: auto;
  max-width: min(100%, 460px);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 24px 64px rgba(10, 178, 133, 0.16),
    0 8px 24px rgba(17, 24, 39, 0.06);
}

/* Signup forms */

.home-signup {
  max-width: 28rem;
}

.home-signup__fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .home-signup__fields {
    flex-direction: row;
    align-items: stretch;
  }
}

.home-signup__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-signup__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10, 178, 133, 0.15);
}

.home-signup__btn {
  flex-shrink: 0;
  padding: 0.9rem 1.35rem;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 178, 133, 0.26);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.home-signup__btn:hover,
.home-signup__btn:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.home-signup__note {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.home-signup--centered {
  margin-inline: auto;
}

.home-signup--centered .home-signup__fields {
  justify-content: center;
}

/* Testimonials marquee */

.home-testimonials__marquee-wrap {
  margin-top: 0.25rem;
}

.home-testimonials__marquee {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-block: 0.25rem;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.home-testimonials__track {
  display: flex;
  width: max-content;
  animation: home-testimonials-scroll 110s linear infinite;
  will-change: transform;
}

.home-testimonials__marquee:hover .home-testimonials__track,
.home-testimonials__marquee:focus-within .home-testimonials__track {
  animation-play-state: paused;
}

.home-testimonials__group {
  display: flex;
  gap: var(--home-gap);
  padding-inline: var(--gutter);
}

.home-testimonials__group .home-testimonial {
  flex: 0 0 min(320px, calc(100vw - var(--gutter) * 2 - 2.5rem));
  scroll-snap-align: start;
}

@keyframes home-testimonials-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-testimonials__marquee {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .home-testimonials__track {
    animation: none;
    flex-direction: column;
    width: 100%;
    gap: var(--home-gap);
  }

  .home-testimonials__group[aria-hidden="true"] {
    display: none;
  }

  .home-testimonials__group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    width: 100%;
    padding-inline: 0;
  }

  .home-testimonials__group .home-testimonial {
    flex: none;
  }
}

.home-testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: clamp(1.35rem, 2.5vw, 1.65rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(10, 178, 133, 0.14);
  border-radius: calc(var(--radius) + 2px);
  box-shadow:
    0 2px 12px rgba(17, 24, 39, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  line-height: 1;
  color: var(--brand-muted);
  pointer-events: none;
  user-select: none;
}

.home-testimonial:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 178, 133, 0.28);
  box-shadow:
    0 10px 28px rgba(10, 178, 133, 0.1),
    0 4px 16px rgba(17, 24, 39, 0.05);
}

.home-testimonial__rating {
  position: relative;
  z-index: 1;
  margin-bottom: 0.85rem;
}

.home-testimonial__stars {
  display: inline-flex;
  gap: 0.12rem;
  color: #e8a317;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-testimonial__quote {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.home-testimonial__quote p {
  margin: 0;
  padding-right: 1.5rem;
  color: var(--ink);
  font-size: clamp(0.94rem, 1.1vw, 1rem);
  line-height: 1.65;
}

.home-testimonial__footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.home-testimonial picture,
.home-testimonial__avatar {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.home-testimonial__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--brand-muted);
}

.home-testimonial__initials {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-soft) 0%, var(--brand-muted) 100%);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 1px rgba(10, 178, 133, 0.2);
}

.home-testimonial__cite {
  display: block;
  min-width: 0;
  font-style: normal;
  line-height: 1.35;
}

.home-testimonial__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.home-testimonial__location {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Pro Library promo */

.home-promo {
  display: grid;
  gap: var(--home-gap);
  align-items: center;
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--card-pad);
  text-align: center;
  background: linear-gradient(145deg, var(--white) 0%, var(--brand-soft) 100%);
  border: 1px solid var(--brand-muted);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

@media (min-width: 640px) {
  .home-promo {
    grid-template-columns: auto 1fr;
    text-align: left;
    max-width: none;
  }
}

.home-promo__image {
  width: 140px;
  margin-inline: auto;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.home-promo__image:hover {
  transform: translateY(-3px);
}

.home-promo h2 {
  margin: 0 0 0.35rem;
  text-align: inherit;
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
}

.home-promo h2 a {
  color: inherit;
  text-decoration: none;
}

.home-promo h2 a:hover {
  color: var(--brand-deep);
}

.home-promo__price {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.home-promo .btn {
  display: inline-flex;
  flex-direction: row;
}

/* YouTube banner */

.home-youtube {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

@media (min-width: 768px) {
  .home-youtube {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.home-youtube h2 {
  margin: 0 0 0.35rem;
  text-align: inherit;
  font-family: var(--font-accent);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 400;
}

.home-youtube p {
  margin: 0;
  color: var(--muted);
}

.home-youtube .btn {
  flex-direction: row;
  white-space: nowrap;
}

/* Video cards */

.home-videos__grid {
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 768px) {
  .home-videos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.home-video-card__badge {
  margin: 0 0 0.75rem;
  font-family: var(--font-accent);
  font-size: 1.55rem;
  color: var(--brand-deep);
  text-align: center;
}

.home-video-card__thumb,
.home-video-card__thumb picture {
  display: block;
  overflow: hidden;
  margin-bottom: 0.85rem;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #e9edf2;
}

.home-video-card__thumb img,
.home-video-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-video-card:hover .home-video-card__thumb img {
  transform: scale(1.03);
}

.home-video-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
}

.home-video-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.home-video-card h3 a:hover {
  color: var(--brand-deep);
}

/* Newsletter benefits */

.home-newsletter {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 900px) {
  .home-newsletter {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.home-newsletter__benefits h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.home-newsletter__benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-newsletter__benefits li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-newsletter__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.home-newsletter__benefits strong {
  color: var(--ink);
}

.home-newsletter__form-wrap {
  padding: var(--card-pad);
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* Article cards */

.home-articles__grid {
  display: grid;
  gap: var(--home-gap);
}

@media (min-width: 768px) {
  .home-articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.08);
}

.home-article-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.home-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.25rem;
}

.home-article-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.35;
}

.home-article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.home-article-card h3 a:hover {
  color: var(--brand-deep);
}

.home-article-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.home-article-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}

.home-article-card__link:hover {
  color: var(--brand);
}

.home-section__title :is(strong, b),
.home-hero__eyebrow :is(strong, b),
.home-promo h2 :is(strong, b),
.home-youtube h2 :is(strong, b),
.home-video-card__badge :is(strong, b) {
  font-weight: 400;
}

.home-section__cta {
  margin: 2rem 0 0;
  text-align: center;
}
