/* LittleSteps Kids Learning website. Colors follow the app theme (Assets/App/UI/Resources/AppTheme.asset);
   the *-ink variants are darker shades used wherever text sits on or in a brand color. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff4de;
  --cream-deep: #ffe9c2;
  --surface: #ffffff;
  --ink: #2e2a4f;
  --muted: #5c5880;
  --coral: #ff7a59;
  --coral-ink: #b3391a;
  --blue: #3d9bff;
  --blue-ink: #0157c2;
  --hero-top: #0573d6;
  --hero-bottom: #0157c2;
  --yellow: #ffc53d;
  --yellow-soft: #ffd866;
  --green: #2dbe85;
  --green-ink: #13714d;
  --purple: #8a63f2;
  --purple-ink: #6d45d9;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 10px 30px rgba(46, 42, 79, 0.12);
  --font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral-ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--yellow-soft);
}

main:focus {
  outline: none;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, 50rem);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 222, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(46, 42, 79, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.brand-little {
  color: var(--blue-ink);
}

.brand-steps {
  color: var(--coral-ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--cream-deep);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button-light {
  background: #fff;
  color: var(--blue-ink);
  box-shadow: 0 5px 0 rgba(0, 40, 100, 0.35);
}

.button-light:hover {
  color: var(--blue-ink);
}

.button-outline {
  border-color: #fff;
  color: #fff;
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.button-store {
  background: #000;
  color: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3);
}

.button-store:hover {
  color: #fff;
}

/* Hero */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  color: #fff;
}

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--yellow-soft);
  font-family: var(--font-display);
  /* At least 18.66px bold, so it counts as large text for contrast on the hero blue. */
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.eyebrow-dark {
  color: var(--coral-ink);
}

.lead {
  max-width: 36rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-actions-center {
  justify-content: center;
}

.hero-art {
  position: relative;
  max-width: 34rem;
  margin-inline: auto;
  width: 100%;
}

.hero-characters {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: -2.2rem;
}

.hero-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 30, 80, 0.3);
}

.mini-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 0 var(--cream-deep);
}

.mini-card img {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.hero-star {
  position: absolute;
  opacity: 0.95;
}

.hero-star-1,
.hero-star-3 {
  display: none;
}

.hero-star-2 {
  top: 1.25rem;
  right: 1.25rem;
  transform: rotate(12deg);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

.section-header {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  font-size: 1.15rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card h3,
.feature-card p {
  padding-inline: 1.5rem;
}

.feature-card h3 {
  margin-top: 1.25rem;
}

.feature-card p {
  color: var(--muted);
}

.feature-art {
  display: grid;
  place-items: center;
  height: 9.5rem;
  padding: 1.25rem;
}

.feature-art img {
  width: auto;
  height: 7rem;
  filter: drop-shadow(0 6px 10px rgba(46, 42, 79, 0.18));
}

.feature-yellow .feature-art img {
  filter: none;
}

.feature-coral .feature-art { background: #ffe1d8; }
.feature-blue .feature-art { background: #dcecff; }
.feature-green .feature-art { background: #d6f4e7; }
.feature-purple .feature-art { background: var(--purple); }
.feature-yellow .feature-art { background: #fff0c4; }

.feature-coral { box-shadow: 0 6px 0 var(--coral), var(--shadow); }
.feature-blue { box-shadow: 0 6px 0 var(--blue), var(--shadow); }
.feature-green { box-shadow: 0 6px 0 var(--green), var(--shadow); }
.feature-purple { box-shadow: 0 6px 0 var(--purple-ink), var(--shadow); }
.feature-yellow { box-shadow: 0 6px 0 var(--yellow), var(--shadow); }

/* Screens */

.screen-grid {
  display: grid;
  gap: 1.75rem;
}

.screen {
  margin: 0;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.screen img {
  width: 100%;
  border-radius: 16px;
}

.screen figcaption {
  padding: 0.85rem 0.6rem 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
}

/* Parents */

.parents-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-areas: "copy" "figure" "list";
}

.parents-copy {
  grid-area: copy;
}

.parents-copy .section-intro {
  max-width: 34rem;
}

.parents-figure {
  grid-area: figure;
  align-self: center;
}

.parents-figure figcaption {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--muted);
}

.benefit-list {
  grid-area: list;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.benefit-list h3 {
  margin-bottom: 0.3rem;
  font-size: 1.15rem;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
}

.benefit-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.benefit-coral { background: #ffe1d8; color: var(--coral-ink); }
.benefit-blue { background: #dcecff; color: var(--blue-ink); }
.benefit-purple { background: #ebe3ff; color: var(--purple-ink); }
.benefit-green { background: #d6f4e7; color: var(--green-ink); }
.benefit-yellow { background: #fff0c4; color: #8a5a00; }

/* Call to action */

.cta {
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--hero-top), var(--hero-bottom));
  color: #fff;
  text-align: center;
}

.cta-inner .cta-actions {
  justify-content: center;
}

.cta-icon {
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0, 20, 60, 0.35);
}

/* Inner pages */

.page-hero {
  padding: clamp(2.75rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.75rem);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-hero .meta {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
}

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

.page-hero-center img {
  margin: 0 auto 1rem;
}

.page-hero-center .lead {
  margin-inline: auto;
}

.page-body {
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.contact-card,
.topic,
.summary-card,
.toc {
  margin-bottom: 1.75rem;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card {
  border-top: 8px solid var(--blue);
}

.contact-email {
  font-family: var(--font-display);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-left: 6px solid var(--coral);
  border-radius: 14px;
  background: #fff0ea;
}

.callout h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.callout ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.callout p {
  margin: 0;
}

.help-topics > h2 {
  margin: 2.5rem 0 1.25rem;
}

.topic h3 {
  font-size: 1.35rem;
}

.topic ul,
.topic ol,
.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.topic li,
.prose li {
  margin-bottom: 0.55rem;
}

.page-footnote {
  margin-top: 2rem;
  color: var(--muted);
  text-align: center;
}

.prose > section {
  scroll-margin-top: 6rem;
}

.prose > section + section {
  margin-top: 2.5rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.summary-card {
  border-top: 8px solid var(--green);
}

.summary-card h2,
.toc h2 {
  font-size: 1.4rem;
}

.toc ol {
  columns: 2 15rem;
  column-gap: 2rem;
  margin: 0;
}

.toc li {
  break-inside: avoid;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--ink);
  color: #f1effa;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-brand img {
  border-radius: 12px;
}

.footer-brand p {
  margin: 0;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--yellow-soft);
}

.footer-legal {
  margin: 0;
  color: #cfcbe6;
  font-size: 0.88rem;
}

/* Layouts */

@media (max-width: 479px) {
  .site-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }

  .site-nav ul {
    gap: 0;
    margin-inline: -0.6rem;
  }
}

@media (min-width: 640px) {
  .feature-grid,
  .screen-grid,
  .benefit-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .cta-inner .cta-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero-star-1,
  .hero-star-3 {
    display: block;
  }

  .hero-star-1 {
    top: 12%;
    left: 2.5%;
  }

  .hero-star-2 {
    top: 8%;
    right: 8%;
  }

  .hero-star-3 {
    top: 46%;
    right: 2.5%;
    transform: rotate(-10deg);
  }

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

  .feature-card {
    grid-column: span 2;
  }

  .feature-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .parents-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy figure" "list list";
    align-items: center;
  }

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

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

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

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

  .button {
    transition: none;
  }

  .button:hover,
  .button:active {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toc {
    display: none;
  }

  .page-hero {
    background: none;
    color: var(--ink);
  }
}
