:root {
  --page: #fffaf1;
  --surface: #ffffff;
  --tint: #eef7ff;
  --ink: #2d2a3e;
  --muted: #5e5a70;
  --line: #efe6d6;
  --primary: #1f8a4c;
  --primary-dark: #17703c;
  --heading: #33206b;
  --accent: #e0660f;
  --green: #e3f6dc;
  --blue: #dff0ff;
  --purple: #eee5ff;
  --yellow: #fff3c9;
  --orange: #ffe6d3;
  --pink: #ffe3ef;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(68, 50, 110, 0.1);
  --display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

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

a {
  color: var(--primary-dark);
}

:focus-visible {
  outline: 3px solid #5a3fd6;
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--display);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 30;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--surface);
}

.skip-link:focus {
  top: 12px;
}

.placeholder {
  padding: 1px 6px;
  border-radius: 6px;
  background: #fff0a8;
  color: #4d3b00;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 6px 0 var(--primary-dark);
  color: #fff;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--primary-dark);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--primary-dark);
}

.button-small {
  padding: 13px 20px;
  box-shadow: 0 4px 0 var(--primary-dark);
  font-size: 1rem;
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 241, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav ul {
  display: flex;
  gap: 4px;
}

.site-nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav li a:hover,
.site-nav li a[aria-current] {
  background: var(--purple);
  color: var(--heading);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 24px;
  height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -8px;
}

.menu-bars::after {
  top: 8px;
}

.menu-open .menu-bars {
  background: transparent;
}

.menu-open .menu-bars::before {
  transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-bars::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 940px) {
  .menu-ready .menu-button {
    display: block;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 16px;
  }

  .menu-ready .site-nav {
    display: none;
  }

  .menu-ready.menu-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav li a {
    padding: 12px;
  }

  .site-nav .button {
    text-align: center;
  }
}

/* Hero */

.hero {
  overflow: hidden;
  background: linear-gradient(180deg, #dcf1ff 0%, #f0f9ff 55%, var(--page) 100%);
}

.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-block: 48px 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b34d05;
  font-family: var(--display);
  font-weight: 700;
}

.hero-subtitle {
  margin: 16px 0 8px;
  color: var(--heading);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.hero-copy .button {
  margin-top: 16px;
}

.hero-scene {
  position: relative;
  aspect-ratio: 1 / 0.92;
}

.hill {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  border-radius: 50%;
  background: linear-gradient(180deg, #c5eda4, #a2dd80);
}

.sun {
  position: absolute;
  top: 2%;
  right: 8%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd35c;
  box-shadow: 0 0 0 12px rgba(255, 211, 92, 0.3);
}

.cloud {
  position: absolute;
  width: 22%;
  height: 8%;
  border-radius: 999px;
  background: #fff;
  animation: drift 9s ease-in-out infinite alternate;
}

.cloud::before {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 30%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.cloud-one {
  top: 10%;
  left: 2%;
}

.cloud-two {
  top: 18%;
  right: 28%;
  animation-delay: -4s;
}

.guide {
  position: absolute;
  bottom: 7%;
  filter: drop-shadow(0 8px 10px rgba(45, 42, 62, 0.18));
}

.guide-elephant {
  left: 25%;
  width: 50%;
  bottom: 3%;
  animation: bob 4s ease-in-out infinite;
}

.guide-rabbit {
  left: 0;
  width: 26%;
  animation: bob 4s ease-in-out -1s infinite;
}

.guide-monkey {
  right: 0;
  bottom: 42%;
  width: 22%;
  animation: bob 4s ease-in-out -2s infinite;
}

.guide-tiger {
  right: 0;
  width: 26%;
  animation: bob 4s ease-in-out -3s infinite;
}

@keyframes bob {
  to {
    transform: translateY(-8px);
  }
}

@keyframes drift {
  to {
    transform: translateX(18px);
  }
}

/* Sections */

.section {
  padding-block: clamp(48px, 8vw, 80px);
}

.section-tint {
  background: var(--tint);
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.about-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
}

.about-row h2 {
  margin-bottom: 16px;
}

.guides-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
}

.guides-row img:nth-child(2) {
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

.feature-card img {
  width: auto;
  height: 72px;
  margin-bottom: 16px;
}

.feature-card p {
  margin: 8px 0 0;
}

.tint-green { background: var(--green); }
.tint-blue { background: var(--blue); }
.tint-purple { background: var(--purple); }
.tint-yellow { background: var(--yellow); }
.tint-orange { background: var(--orange); }
.tint-pink { background: var(--pink); }

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

.benefit-grid li:last-child {
  grid-column: 1 / -1;
}

.benefit-grid li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.benefit-grid strong {
  color: var(--heading);
  font-family: var(--display);
  font-size: 1.125rem;
}

.benefit-grid span {
  color: var(--muted);
}

/* Call to action */

.cta {
  padding-top: 0;
}

.cta-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 32px;
  background: linear-gradient(120deg, var(--yellow), var(--pink));
}

.cta-card h2 {
  margin-bottom: 24px;
}

.download-note {
  margin: 20px 0 0;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.download-note:target {
  outline: 3px solid var(--primary);
  background: #fff;
}

/* Inner pages */

.page-banner {
  padding-block: 48px;
  background: linear-gradient(180deg, #dcf1ff, var(--page));
}

.page-banner h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.page-banner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.legal {
  padding-bottom: 64px;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.375rem;
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
}

.legal li {
  margin-bottom: 4px;
}

.contact-list {
  margin: 0;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card img {
  width: 110px;
  flex: none;
}

.not-found {
  padding-block: 64px;
  text-align: center;
}

.not-found img {
  width: 160px;
  margin: 0 auto 16px;
}

.not-found .button {
  margin-top: 20px;
}

/* Footer */

.site-footer {
  padding-top: 48px;
  background: #2f2358;
  color: #e9e5f7;
}

.site-footer a {
  color: #fff;
}

.site-footer .brand {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-about p {
  margin: 12px 0 0;
  max-width: 34ch;
}

.site-footer h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.0625rem;
}

.site-footer li {
  padding-block: 4px;
}

.copyright {
  margin: 32px 0 0;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9375rem;
  text-align: center;
}

/* Smaller screens */

@media (max-width: 860px) {
  .hero-row,
  .about-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-scene {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .guides-row {
    width: min(100%, 420px);
    margin-inline: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-card img {
    width: 150px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
