:root {
  --background: #f7fbff;
  --foreground: #172a3a;
  --card: #ffffff;
  --muted: #eef5fb;
  --muted-strong: #d9e8f4;
  --muted-foreground: #607080;
  --primary: #2f83bd;
  --primary-deep: #22608d;
  --primary-dark: #154b73;
  --secondary: #f8c83e;
  --secondary-deep: #de9f16;
  --coral: #f3755d;
  --mint: #5fc5a8;
  --border: #d8e4ee;
  --shadow-card: 0 14px 36px rgba(23, 42, 58, 0.1);
  --shadow-playful: 0 18px 45px rgba(47, 131, 189, 0.24);
  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
}

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

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

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

.brand-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 104, 153, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 131, 189, 0.98), rgba(25, 83, 126, 1)),
    var(--primary-dark);
  color: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-block: 52px 32px;
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin-inline: auto;
}

.hero-float {
  position: absolute;
  z-index: 0;
  color: var(--secondary);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 16px rgba(4, 26, 42, 0.18));
}

.hero-float-star {
  top: 42px;
  left: max(24px, calc((100vw - 1120px) / 2 + 10px));
  font-size: 2.4rem;
  animation: float 3s ease-in-out infinite;
}

.hero-float-sparkle {
  top: 82px;
  right: max(28px, calc((100vw - 1120px) / 2 + 18px));
  font-size: 2rem;
  animation: float 3s ease-in-out 1s infinite;
}

.hero-float-book {
  bottom: 82px;
  left: max(20px, calc((100vw - 1120px) / 2 + 190px));
  font-size: 1.8rem;
  animation: wiggle 2s ease-in-out infinite;
}

.eyebrow,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.eyebrow {
  padding: 9px 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
}

.eyebrow svg {
  color: var(--secondary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero h1,
.section-heading h2,
.download-inner h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 2.9rem;
}

.hero h1 span,
.section-heading h2 span,
.download-inner h2 span {
  color: var(--secondary);
}

.hero p {
  max-width: 680px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero-actions,
.store-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-cta {
  color: #172a3a;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-deep));
  box-shadow: var(--shadow-playful);
}

.button-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.button-light {
  color: var(--primary-deep);
  background: #fff;
}

.hero-art {
  width: min(100%, 760px);
  margin-top: -4px;
  margin-inline: auto;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(4, 26, 42, 0.22));
}

.section {
  padding-block: 86px;
}

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

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

.section-heading {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 44px;
  text-align: center;
}

.section-heading h2,
.download-inner h2 {
  color: var(--foreground);
  font-size: 2.55rem;
}

.section-heading p {
  margin: 18px auto 0;
  color: var(--muted-foreground);
  font-size: 1.12rem;
  line-height: 1.72;
}

.story-container {
  width: min(100% - 32px, 900px);
}

.mini-label {
  padding: 9px 14px;
  margin-bottom: 20px;
  color: var(--primary);
  background: rgba(47, 131, 189, 0.1);
}

.mini-label svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.founder-grid,
.testimonial-grid {
  display: grid;
  gap: 24px;
}

.founder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.person-card,
.testimonial-card {
  border: 1px solid rgba(216, 228, 238, 0.85);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.person-card {
  padding: 30px;
  text-align: left;
}

.avatar,
.quote-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}

.avatar {
  width: 86px;
  height: 86px;
  margin: 0 0 18px;
  color: var(--primary);
  background: #e9f5fc;
  border: 2px solid rgba(47, 131, 189, 0.18);
  font-size: 1.35rem;
}

.founder-photo {
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(23, 42, 58, 0.14);
}

.person-card h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.person-card p {
  margin: 15px 0 0;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.person-card .role {
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.testimonial-card {
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-playful);
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--secondary);
}

.stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.testimonial-card p {
  min-height: 112px;
  margin: 0 0 24px;
  color: var(--foreground);
  line-height: 1.66;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--coral);
}

.testimonial-card:nth-child(2) .quote-avatar {
  background: var(--primary);
}

.testimonial-card:nth-child(3) .quote-avatar {
  background: var(--mint);
}

.testimonial-card strong,
.testimonial-card small {
  display: block;
}

.testimonial-card strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.testimonial-card small {
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.download-section {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.download-inner {
  width: min(100% - 32px, 720px);
  text-align: center;
}

.download-mark {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--secondary);
  animation: wiggle 2.4s ease-in-out infinite;
}

.download-mark svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-inner h2 {
  color: #fff;
}

.download-inner p {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.72;
}

.download-inner .download-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-footer {
  padding-block: 38px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.footer-brand {
  color: var(--foreground);
  font-size: 1.08rem;
}

.footer-brand .brand-icon {
  width: 23px;
  height: 23px;
  color: var(--primary);
}

.site-footer p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--primary-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-links a {
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.site-footer p:last-child {
  font-size: 0.8rem;
}

.legal-main {
  min-height: calc(100vh - 197px);
  background: var(--background);
}

.legal-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(47, 131, 189, 0.98), rgba(21, 75, 115, 1)),
    var(--primary-dark);
}

.legal-hero-inner {
  display: grid;
  justify-items: center;
  padding-block: 96px 80px;
  text-align: center;
}

.legal-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.legal-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  font-weight: 800;
}

.legal-section {
  padding-block: 74px 92px;
}

.support-main {
  background: linear-gradient(180deg, var(--background), var(--muted));
}

.support-section {
  display: grid;
  min-height: 46vh;
  align-items: center;
  padding-block: 96px;
}

.legal-document,
.support-panel {
  width: min(100% - 32px, 860px);
}

.legal-document {
  color: var(--foreground);
}

.legal-document p,
.support-panel p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  line-height: 1.78;
}

.legal-document p + h2 {
  margin-top: 38px;
}

.legal-document h2 {
  margin: 0 0 10px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.legal-document a,
.support-panel a:not(.button) {
  color: var(--primary-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.support-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100% - 32px, 720px);
  text-align: center;
}

.support-panel h2 {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.support-panel p {
  max-width: 620px;
}

.support-panel .support-note {
  max-width: 540px;
  color: #738392;
  font-size: 1rem;
}

.support-panel .button {
  width: auto;
  min-width: 220px;
  margin-top: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (min-width: 760px) {
  .hero h1 {
    font-size: 4.1rem;
  }

  .section-heading h2,
  .download-inner h2 {
    font-size: 3.2rem;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    padding-block: 58px 32px;
  }

  .hero-float-star {
    top: 24px;
    left: 16px;
    font-size: 1.9rem;
  }

  .hero-float-sparkle {
    top: 120px;
    right: 18px;
    font-size: 1.6rem;
  }

  .hero-float-book {
    bottom: 40px;
    left: 22px;
    font-size: 1.4rem;
  }

  .founder-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card p {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow,
  .story-container,
  .download-inner {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    font-size: 1.12rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-art {
    width: min(100%, 520px);
    margin-top: 8px;
  }

  .hero p,
  .section-heading p,
  .download-inner p {
    font-size: 1.02rem;
  }

  .hero-actions,
  .store-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-panel .button {
    max-width: 320px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-block: 68px;
  }

  .section-heading h2,
  .download-inner h2 {
    font-size: 2.25rem;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
