/* Children's book landing page: standalone bar/footer plus LP-specific blocks.
   Shared studio components come from /assets/styles.css. */

.lp-body {
  background: var(--white);
}

/* a warmer accent set for a children's page, on top of the studio palette */
.kb {
  --sun: #F6C453;
  --coral: #F2836B;
  --lilac: #B9AEE8;
  --leaf: #7FBF8A;
}

.lp-bar {
  background: var(--navy-2);
  color: #fff;
}

.lp-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.4rem;
  padding: .9rem 0;
}

.lp-logo img {
  width: 170px;
  height: auto;
}

.lp-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.lp-bar-mail,
.lp-bar-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--pill);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.lp-bar-mail:hover,
.lp-bar-call:hover {
  border-color: var(--teal);
  background: rgba(78, 216, 200, .14);
}

.lp-bar-call {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}

.lp-bar-call:hover {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 560px) {
  .lp-bar-mail span {
    display: none;
  }
}

/* hero */
.kb-hero h1 {
  max-width: 22ch;
}

.kb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.kb-hero-stats span {
  display: grid;
  padding: .7rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #B4C3D6;
  font-size: .76rem;
}

.kb-hero-stats b {
  color: var(--sun);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
}

/* what is included */
.kb-inc {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

@media (min-width: 620px) {
  .kb-inc {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .kb-inc {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kb-inc article {
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.kb-inc article:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh);
}

.kb-ic {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--c, var(--mint));
  color: var(--navy);
}

.kb-inc h3 {
  margin: 1rem 0 .5rem;
  font-size: 1.12rem;
}

.kb-inc p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

/* illustrated spread sample */
.kb-spread-sec {
  background: var(--cream-2);
}

.kb-spread-wrap {
  margin-top: 2.2rem;
}

.kb-spread-cap {
  max-width: 74ch;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

/* illustration styles */
.kb-styles {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .kb-styles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .kb-styles {
    grid-template-columns: repeat(5, 1fr);
  }
}

.kb-styles article {
  padding: 1.4rem 1.3rem;
  border-top: 4px solid var(--c, var(--sun));
  border-radius: 4px 4px 18px 18px;
  background: #fff;
  box-shadow: var(--sh-sm);
}

.kb-styles h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
}

.kb-styles p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* cover gallery */
.kb-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.2rem;
}

@media (min-width: 620px) {
  .kb-covers {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1040px) {
  .kb-covers {
    grid-template-columns: repeat(5, 1fr);
  }
}

.kb-covers figure {
  margin: 0;
  text-align: center;
}

.kb-covers img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--sh);
  transition: transform .4s var(--ease);
}

.kb-covers figure:hover img {
  transform: translateY(-6px) rotate(-1.2deg);
}

.kb-covers figcaption {
  margin-top: .7rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: .92rem;
  line-height: 1.35;
}

/* age bands table */
.kb-bands-sec {
  background: var(--navy);
  color: #fff;
}

.kb-bands-sec .il-head h2 {
  color: #fff;
}

.kb-bands-sec .il-head .lede {
  color: #C9D6E8;
}

.kb-table-wrap {
  margin-top: 2.2rem;
  overflow-x: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--sh);
  -webkit-overflow-scrolling: touch;
}

.kb-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .92rem;
}

.kb-table th,
.kb-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.kb-table thead th {
  background: var(--navy-2);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

.kb-table tbody th {
  width: 11rem;
  color: var(--navy);
  font-weight: 700;
}

.kb-table td {
  color: var(--muted);
}

.kb-table tbody tr:last-child th,
.kb-table tbody tr:last-child td {
  border-bottom: 0;
}

.kb-bands-note {
  max-width: 76ch;
  margin: 1.6rem auto 0;
  color: #B4C3D6;
  font-size: .88rem;
  text-align: center;
}

/* stats */
.kb-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .kb-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kb-stats div {
  display: grid;
  gap: .3rem;
  padding: 1.6rem 1.3rem;
  border-top: 5px solid var(--c, var(--sun));
  border-radius: 6px 6px 20px 20px;
  background: #fff;
  box-shadow: var(--sh-sm);
  color: var(--muted);
  font-size: .86rem;
  text-align: center;
}

.kb-stats b {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1.1;
}

/* why us */
.kb-why {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .kb-why {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .kb-why {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kb-why article {
  padding: 1.5rem 1.4rem;
  border-left: 3px solid var(--teal-2);
  border-radius: 0 18px 18px 0;
  background: #fff;
  box-shadow: var(--sh-sm);
}

.kb-why h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
}

.kb-why p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

/* contact */
.kb-contact-sec {
  background: var(--cream-2);
}

.kb-contact {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 940px) {
  .kb-contact {
    grid-template-columns: 1fr 1fr;
  }
}

.kb-contact-rows {
  display: grid;
  gap: .9rem;
  margin-top: 1.6rem;
}

.kb-contact-rows a,
.kb-contact-rows div {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--sh-sm);
}

.kb-contact-rows a:hover {
  border-color: var(--teal-2);
  transform: translateY(-2px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.kb-contact-rows span.ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--navy);
}

.kb-contact-rows b {
  display: block;
  font-size: .96rem;
}

.kb-contact-rows small {
  color: var(--muted);
  font-size: .8rem;
}

.kb-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}

.kb-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  transition: background .3s var(--ease);
}

.kb-socials a:hover {
  background: var(--teal-2);
}

/* footer */
.lp-foot {
  padding: 2.4rem 0;
  background: var(--navy-2);
  color: #B4C3D6;
  font-size: .88rem;
}

.lp-foot .wrap {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 760px) {
  .lp-foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.lp-foot img {
  width: 160px;
  height: auto;
  margin-bottom: .7rem;
}

.lp-foot p {
  margin: 0;
  line-height: 1.6;
}

.lp-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}

.lp-foot nav a {
  color: #fff;
  font-weight: 600;
}

.lp-foot nav a:hover {
  color: var(--teal);
}

.lp-foot-legal {
  grid-column: 1 / -1;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8FA3B8;
  font-size: .8rem;
}

.lp-foot-note {
  grid-column: 1 / -1;
  color: #7E93AA;
  font-size: .76rem;
  line-height: 1.7;
}

/* Progressive enhancement: content is visible without JS. A script in the
   head adds .js-reveal to <html> before the first paint, which arms the
   scroll animation; a failsafe removes it again if the observer never starts. */
.reveal,
.reveal-l {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

.js-reveal .reveal-l:not(.in) {
  opacity: 0;
  transform: translateX(-30px);
}

/* five process steps, so the dashed connector still runs across one row */
@media (min-width: 900px) {
  .kb .il-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* On a phone the whole spread shrinks to about a third of a hand's width, so
   let it scroll sideways at a size where the artwork is actually legible. */
.kb-spread-hint {
  display: none;
}

@media (max-width: 720px) {
  .kb-spread-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .kb-spread-wrap .fm-spread {
    min-width: 560px;
  }

  .kb-spread-hint {
    display: block;
    margin: .8rem 0 0;
    color: var(--muted);
    font-size: .82rem;
    text-align: center;
  }
}
