/* ===========================
   Font Declarations
   =========================== */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("fonts/RobotoMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ===========================
   CSS Variables - Colors from PDF
   =========================== */
:root {
  /* Colors directly from the PDF */
  --color-bg-cream: #fffaeb; /* Main background cream from Adobe XD */
  --color-text-dark: #4a3f36; /* Dark brown text */
  --color-text-heading: #6b5b50; /* Heading brown */
  --color-logo-brown: #5d4037; /* Logo brown color */
  --color-green-mint: #dcedc8; /* Mint green button */
  --color-orange: #ff6c00;
  --color-green: #37893E;
  --color-light-pink: #fce4ec; /* Light pink background */
  --color-light-pink-50: rgba(
    252,
    228,
    236,
    0.5
  ); /* Light pink at 50% opacity */
  --color-footer-dark: #4a3f36; /* Footer background */
  --color-cream: #fff3f0;
  --color-brown: #5d4037;
  --color-dark-green: #1b5e20;
  --color-light-green: #dcedc8;
  --color-pink: #fce4ec;
  --color-purple: #ce3ece;
  --color-light-purple: #f5e6f5;
  --color-light-yellow: #fffaeb;
  --color-yellow: #ffba00;
  --color-cyan: #b2ebf2;
  --color-light-cyan: #e8f9fb;
  --color-blue: #0052ff;
  --color-light-blue: #b2ebf2;
  --color-gray: #767676;
  --color-light-gray: #f8f8f8;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-surface-card: #ffffff;
  --color-border-muted: rgba(90, 80, 70, 0.08);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);


  /* Typography */
  --font-primary: "Atkinson Hyperlegible", -apple-system, sans-serif;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --hero-cta-gap: 1rem;
  --hero-headline-size: 48px;
  --hero-headline-line-height: 56px;
  --hero-headline-size-mobile: 32px;
  --hero-headline-line-height-mobile: 40px;

  --element-star-small: 12px;
  --element-star-medium: 18px;
  --element-star-large: 24px;
  --element-ball-small: 24px;
  --element-ball-medium: 32px;
  --element-box-small: 24px;
  --element-box-medium: 32px;
  --element-books: 40px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* ===========================
   Reset & Base
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ===========================
   Container
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Reusable layout utilities */
.layout-row-responsive {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--space-2xl);
  column-gap: 0;
  width: 100%;
}

.layout-stack-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.layout-stack-start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.layout-stack-center--desktop-start {
  width: 100%;
}

.grid-auto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.media-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ===========================
   Header
   =========================== */
.header {
  padding: var(--space-md) 0;
  position: relative;
  z-index: 100;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.header__languages {
  display: inline-flex;
  gap: var(--space-xs);
  margin-left: auto;
}

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

.header__logo .hero__logo {
  width: clamp(140px, 18vw, 220px);
}

.lang-btn {
  background: transparent;
  color: var(--color-text-dark);
  padding: var(--space-xs) var(--space-sm);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.002em;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  border: none;
  text-decoration: none;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 1px;
  background-color: var(--color-text-dark);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 30vw;
  min-height: 80vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  background-image: url("/images/worm.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 122vw auto;
  z-index: 1;
  pointer-events: none;
}

/* Homework Help A: Tighter worm spacing due to chat screenshot */
.hero--homework-help-a {
  padding: calc(var(--space-3xl) + 1.5rem) 0 12vw;
}

.hero--homework-help-a::before {
  content: "";
  position: absolute;
  top: 10;
  bottom: unset;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  background-image: url("/images/worm.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 122vw auto;
  z-index: 1;
  pointer-events: none;
}

/* Hero content */
.hero__content {
  position: relative;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

.hero__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.hero__intro {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__intro-media {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: var(--space-2xl) 0;
}

.hero__intro-text {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.hero__title {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

.hero__title--headline {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: var(--hero-headline-size);
  line-height: var(--hero-headline-line-height);
  font-weight: 500;
  letter-spacing: 0.002em;
  color: var(--color-text-heading);
}

.hero__logo {
  display: inline-block;
  max-width: 100%;
  height: auto;
  width: clamp(200px, 50vw, 400px);
  fill: var(--color-logo-brown);
}

.hero__subtitle {
  font-family: "Roboto Mono", monospace;
  font-weight: 500; /* Medium weight */
  font-size: 19px;
  letter-spacing: 0.002em;
  line-height: 23px;
  color: var(--color-text-dark);
  margin-bottom: var(--space-2xl);
}

.hero__usp {
  width: 100%;
  max-width: 1200px;
  margin: var(--space-3xl) auto var(--space-2xl);
  padding: 0;
  list-style: none;
}

.hero__usp-item {
  background: var(--color-brown);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-light-pink);
  box-shadow: 0 15px 30px rgba(93, 64, 55, 0.25);
}

.hero__usp-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-pink);
  color: var(--color-brown);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero__usp-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-brown);
}

.hero__usp-title {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-light-pink);
  margin-bottom: 0;
}

.hero__usp-description {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(252, 228, 236, 0.85);
  margin: 0;
}

.hero__usp-item:nth-child(1) .hero__usp-icon {
  background: var(--color-light-blue);
}

.hero__usp-item:nth-child(2) .hero__usp-icon {
  background: var(--color-light-green);
}

.hero__usp-item:nth-child(3) .hero__usp-icon {
  background: var(--color-light-purple);
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-2xl);
}

.hero__text-block {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
  max-width: 520px;
}

.hero__text-block--below {
  width: 100%;
  max-width: 1200px;
}

.hero__text-eyebrow {
  font-family: "Atkinson Hyperlegible", sans-serif;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs) 0;
}

.hero__text-copy {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin: 0;
}

.hero__text-copy + .hero__text-copy {
  margin-top: var(--space-sm);
}

.hero__text-highlight {
  font-size: calc(1em + 2px);
  font-weight: 700;
  line-height: 1;
}

.hero__text-highlight--orange {
  color: var(--color-orange);
}

.hero__media {
  display: none;
}

.hero__media--inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero__intro-media .hero__media--inline {
  width: 100%;
}

.hero__media--inline .hero__media-image {
  width: clamp(240px, 70vw, 380px);
}

.hero__media-image {
  width: clamp(260px, 32vw, 420px);
  height: auto;
}

.hero__media-video {
  display: block;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

@media (min-width: 980px) {
  .hero__buttons {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }

  .hero__text-block {
    text-align: left;
  }
}

.hero__description {
  font-size: 19px;
  line-height: 23px;
  letter-spacing: 0.002em;
  color: var(--color-text-dark);
  max-width: 1024px;
  margin: 0 auto var(--space-md);
}

.hero__tagline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column-reverse; /* Computer below tagline on mobile */
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-heading);
  font-weight: 500;
}

/* Computer character illustration */
.hero__illustration {
  position: static; /* Default: in-flow for mobile */
  margin: 0 auto;
  text-align: center;
}

.computer-image {
  width: 190px;
  height: auto;
  animation: bounce-gentle 3s ease-in-out infinite;
}

@keyframes bounce-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 960px) {
  .hero__layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__buttons {
    align-items: center;
    gap: var(--space-2xl);
  }

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

  .hero__media--inline {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ===========================
   Buttons
   =========================== */
.btn {
  height: 76px;
  padding: 0 var(--space-2xl);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  border-radius: 38px; /* Half of height for pill shape */
  transition: all 0.3s ease;
  min-width: 280px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  line-height: 1;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(168, 230, 207, 0.5);
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-light-pink);
  font-size: 20px;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
  background: white;
  color: var(--color-text-dark);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Feature Sections
   =========================== */
.feature {
  padding: 0 0 calc(var(--space-3xl) * 2) 0;
  position: relative;
}

/* All feature sections use same background color */
.feature--safe,
.feature--voices,
.feature--visual,
.feature--parents {
  background: transparent; /* Inherits the #FFFAEB from body */
}

.feature--always {
  background: var(--color-light-pink-50);
  text-align: center;
  padding-bottom: var(--space-3xl); /* Keep padding for content spacing */
  padding-top: var(--space-2xl);
  margin-bottom: 0; /* Ensure no gap before footer */
  position: relative;
  overflow: hidden;
}

.feature--always::after {
  content: "";
  position: absolute;
  bottom: 70px;
  right: 70px;
  width: 70px;
  height: 70px;
  background-image: url("/images/star2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.feature--always .container {
  position: relative;
  z-index: 2;
}

.feature--always .container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5vw;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  background-image: url("/images/star.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .feature--always .container::before {
    left: -5vw; /* Pushes partially out of view on mobile */
    width: 80px;
    height: 80px;
  }
}

.feature--always .feature__description {
  position: relative;
  text-align: center;
  max-width: 500px;
  margin: 0 auto var(--space-lg);
  z-index: 2;
}

.feature--always .btn {
  margin-top: 2rem;
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: end; /* Bottom align items */
}

/* No special styling needed for mobile - stacks naturally */

.feature__content {
  max-width: 500px;
  margin-left: 2rem;
  margin-right: 2rem;
}

.feature__title {
  font-size: 53px;
  line-height: 67px;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 500; /* Medium weight */
  letter-spacing: 0.002em;
  color: var(--color-text-heading);
}

.feature__subtitle {
  font-family: "Roboto Mono", monospace;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 29px;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.feature__description {
  font-size: 16px;
  letter-spacing: 0.002em;
  color: var(--color-text-dark);
  line-height: 22px;
  max-width: 500px;
}

.feature__illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Bottom align the image within its container */
  padding: var(--space-sm);
  z-index: 1;
}

.feature__illustration::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 300px;
  top: -40px;
  left: -90px;
  background-image: url("/images/elements/SectionGroup.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.feature__illustration img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-xl);
}

/* Center aligned section */
.feature__center {
  margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-footer-dark);
  color: var(--color-light-pink);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: 0; /* Remove top margin to connect with always section */
}

.footer__header {
  width: 100%;
  text-align: left;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-md);
}

.footer__logo {
  /* No margin */
}

.footer__logo-svg {
  width: 280px;
  height: auto;
  fill: var(--color-light-pink);
}

.footer__tagline {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  opacity: 0.9;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 10rem; /* Large gap between columns */
  row-gap: var(--space-xl);
  width: 100%;
  padding: 0 var(--space-md);
}

.footer__column {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.footer__label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.75rem; /* Small margin after the line */
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-light-pink);
}

.footer__link {
  color: var(--color-light-pink);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem; /* Smaller margin between links */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer__link:hover {
  opacity: 1;
}

/* Removed .footer__link--email styles as email is now in middle column without special styling */

.footer__social-links {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: left;
}

.footer__social-link {
  display: inline-block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.footer__social-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer__social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--color-light-pink);
}

.footer__copyright {
  margin-top: var(--space-xs); /* Reduced margin */
  opacity: 0.7;
  font-size: 0.875rem;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 600px) {
  .header__languages {
    gap: var(--space-xxs);
  }

  .lang-btn {
    padding: var(--space-xxs) var(--space-xs);
  }
}

@media (min-width: 768px) {
  .hero__content {
    text-align: center;
  }

  .computer-image {
    width: 190px;
  }

  .hero__description {
    margin: 0 0 var(--space-md) 0;
  }

.feature__grid {
  grid-template-columns: 1.2fr 0.8fr; /* Give more space to text column */
}

.feature__illustration::before {
  width: 195px;
  height: 412px;
  top: -70px;
  left: -140px;
}

/* Reverse Safe by Design and Visual sections (1st and 3rd) */
.feature--safe .feature__illustration,
.feature--parents .feature__illustration {
  order: 2;
}

  .feature--safe .feature__content,
.feature--parents .feature__content {
  order: 1;
}

.feature--safe .feature__illustration::before,
.feature--parents .feature__illustration::before {
  left: auto;
  right: -140px;
  transform: scaleX(-1);
}

/* Prevent title wrapping on desktop */
.feature__title {
  white-space: nowrap; /* Prevent line breaks */
  font-size: 48px; /* Slightly smaller if needed to fit */
}

  .feature__content {
    max-width: 600px; /* Give more room for content */
  }

  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .footer__column {
    text-align: left;
  }
}

.hero__cta-group--spaced {
  margin-top: var(--hero-cta-gap);
  margin-bottom: var(--hero-cta-gap);
}

.page-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.page-element {
  position: absolute;
  display: block;
  opacity: 0.85;
}

.page-element--star-top-left {
  top: 75px;
  left: 120px;
  width: 16px;
}

.page-element--star-top-right {
  top: 60px;
  right: 50px;
  width: 20px;
}

.page-element--star-mid-left {
  top: 380px;
  left: 48%;
  width: 18px;
}

.page-element--star-mid-right {
  top: 470px;
  right: 44%;
  width: 20px;
}

.page-element--ball-hero {
  top: 120px;
  left: 140px;
  width: 36px;
  rotate: 45deg;
}

.page-element--ball-top-center {
  top: 30px;
  left: 45%;
  width: 56px;
}

.page-element--ball-top-right {
  top: 130px;
  right: 60px;
  width: 32px;
}

.page-element--ball-safe {
  top: 320px;
  left: 51%;
  width: 32px;
}

.page-element--box-safe {
  top: 80px;
  right: 340px;
  width: 40px;
}

.page-element--box-voices {
  top: 430px;
  left: 45%;
  width: 42px;
}

.page-element--books-visual {
  top: 1520px;
  right: 140px;
  width: 56px;
}

.page-element--books-top-left {
  top: 110px;
  left: -20px;
  width: 64px;
}

.page-element--star-bottom-right {
  top: 550px;
  right: 50%;
  width: 26px;
}

.page-element--boxes-bottom-left {
  bottom: 110px;
  left: 40px;
  width: 34px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .hero__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__intro-media,
  .hero__media,
  .hero__media--inline {
    margin: 0 auto;
    justify-content: center;
    align-items: center;
  }

  .page-element--star-top-left {
    top: 75px;
    left: 120px;
  }

  .page-element--star-top-right {
    top: 60px;
    right: 50px;
  }

  .page-element--star-mid-left {
    top: 380px;
    left: 28%;
  }

  .page-element--star-mid-right {
    top: 410px;
    right: 44%;
  }

  .page-element--ball-hero {
    top: 120px;
    left: 140px;
  }

  .page-element--ball-top-center {
    top: 30px;
    left: 45%;
  }

  .page-element--ball-top-right {
    top: 130px;
    right: 60px;
  }

  .page-element--ball-safe {
    top: 420px;
    right: 10%;
    left: unset;
  }

  .page-element--box-safe {
    top: 80px;
    right: 340px;
  }

  .page-element--box-voices {
    top: 430px;
    left: 15%;
  }

  .page-element--books-visual {
    top: 1520px;
    right: 140px;
  }

  .page-element--books-top-left {
    top: 110px;
    left: -20px;
  }

  .page-element--star-bottom-right {
    top: 570px;
    right: 50%;
  }

  .page-element--boxes-bottom-left {
    top: 700px;
    bottom: unset;
    left: unset;
    right: 20%;
  }
}

@media (max-width: 767px) {
  :root {
    --hero-cta-gap: 1rem;
    --hero-headline-size: var(--hero-headline-size-mobile);
    --hero-headline-line-height: var(--hero-headline-line-height-mobile);
  }

  .hero__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__intro-media,
  .hero__media,
  .hero__media--inline {
    margin: 0 auto;
    justify-content: center;
    align-items: center;
  }

  .page-element {
    opacity: 0.7;
  }

  .page-element--star-top-left {
    top: 75px;
    left: 120px;
  }

  .page-element--star-top-right {
    top: 60px;
    right: 50px;
  }

  .page-element--star-mid-left {
    top: 960px;
    left: 22%;
  }

  .page-element--star-mid-right {
    top: 7%;
    right: 44%;
  }

  .page-element--ball-hero {
    top: 7.7%;
    left: 140px;
  }

  .page-element--ball-top-center {
    top: 80px;
    left: 45%;
  }

  .page-element--ball-top-right {
    top: 590px;
    right: unset;
    left: 20%;
  }

  .page-element--ball-safe {
    top: 6.5%;
    right: 10%;
    left: unset;
  }

  .page-element--box-safe {
    top: 980px;
    right: 4%;
  }

  .page-element--box-voices {
    top: 7.1%;
    left: 15%;
  }

  .page-element--books-visual {
    top: 1520px;
    right: 140px;
  }

  .page-element--books-top-left {
    top: 110px;
    left: -20px;
  }

  .page-element--star-bottom-right {
    top: 570px;
    right: 50%;
  }

  .page-element--boxes-bottom-left {
    top: 590px;
    bottom: unset;
    left: unset;
    right: 20%;
  }
}


@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
  }

  .layout-row-responsive {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-2xl);
    align-items: stretch;
  }

  .layout-stack-center--desktop-start {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    height: 100%;
  }

  .hero__intro-text {
    max-width: 540px;
    height: 100%;
  }

  .hero__intro-text .hero__cta-group--spaced {
    margin-top: auto;
    margin-bottom: 0;
  }

  .media-frame {
    justify-content: flex-end;
    max-width: 520px;
    flex: 1;
    height: 100%;
  }

  .hero__intro-media {
    margin: 0;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero__intro-media .hero__media--inline {
    align-items: flex-end;
  }

  .hero__cta-group {
    align-self: flex-start;
  }

  /* Move computer illustration to the left side on desktop */
  .hero__tagline-wrapper {
    flex-direction: row; /* Back to horizontal */
    min-height: 100px;
    align-items: flex-start; /* Align to top on desktop */
    margin-top: 1rem;
  }

  .hero__tagline-wrapper-b {
    width: 50%;
  }

  .hero__illustration {
    position: absolute; /* Take out of flow on desktop */
    left: -200px;
    top: 0;
    z-index: 1;
    margin: 0;
  }

  .computer-image {
    width: 190px;
  }

  .feature__illustration img {
    max-width: 260px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
header,
main,
footer {
  position: relative;
  z-index: 2;
}
