/* notabot.ai homepage: who we are and the store hero slideshow
   (nb-store-hero.js) as one first section, the "How a game box teaches" band
   under it, and the closing calls to action and footer. Same type as store.notabot.ai
   (Montserrat Alternates for display, Nunito for reading); Not a Bot palette.
   Hand-written rather than Tailwind: these classes aren't in
   vendor/tailwind-generated.css. */

@font-face {
  font-family: "NB Montserrat";
  font-weight: 700;
  font-display: swap;
  src: url("vendor/fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "NB Montserrat";
  font-weight: 900;
  font-display: swap;
  src: url("vendor/fonts/montserrat-900.woff2") format("woff2");
}
@font-face {
  font-family: "NB Nunito";
  font-weight: 400;
  font-display: swap;
  src: url("vendor/fonts/Nunito-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "NB Nunito";
  font-weight: 600;
  font-display: swap;
  src: url("vendor/fonts/Nunito-SemiBold.woff2") format("woff2");
}

.nb-hero,
.nb-teach,
.nb-close,
.nb-foot {
  --nb-teal: #0d9488;
  --nb-teal-deep: #0b7a70;
  --nb-teal-soft: #45beb9;
  --nb-sun: #fbd86e;
  --nb-plum: #7f546e;
  --nb-mint: #9dddda;
  --nb-ink: #1b2a4a;
  --nb-ink-soft: #46536f;
  --nb-display: "NB Montserrat", "NB Nunito", system-ui, sans-serif;
  --nb-body: "NB Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--nb-body);
  color: var(--nb-ink);
}

/* ---- Header link ------------------------------------------------------- */
.nb-nav-shop li {
  color: #0d9488;
  font-weight: 700;
}
.nb-nav-shop:hover li {
  text-decoration: underline;
}
/* Five nav items + the logo fit one line on a 360-390px phone. */
@media (max-width: 440px) {
  .nb-site-header > div:first-child {
    width: 6.5rem;
    padding: 0.75rem 0.5rem;
  }
  .nb-site-header nav li {
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.nb-hero {
  background: #f6fbfa;
  border-bottom: 1px solid #dcefed;
}
.nb-hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
}
/* Who we are: a line above the game box, not a band of its own. */
.nb-hero__about {
  margin-bottom: 1.75rem;
}
.nb-hero__brand {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  color: var(--nb-teal-deep);
  margin: 0;
}
.nb-hero__what {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--nb-ink-soft);
}
/* The controls come first in the DOM (so pause/play is the first tab stop,
   per the WAI-ARIA carousel pattern) but sit under the slide. */
.nb-carousel {
  display: flex;
  flex-direction: column;
}
.nb-hero__head {
  display: contents;
}
.nb-hero__intro {
  margin-bottom: 1.5rem;
}
.nb-hero__title {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
.nb-hero__sub {
  margin: 0.5rem 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--nb-ink-soft);
}

/* ---- Carousel controls -------------------------------------------------- */
.nb-carousel__controls {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
/* Invisible (not removed) until there are slides to move between, so showing
   them never shifts the page. */
.nb-carousel:not(.nb-carousel--ready) .nb-carousel__controls,
.nb-carousel--fallback .nb-carousel__controls {
  visibility: hidden;
}
.nb-carousel__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #c5e7e4;
  background: #fff;
  color: var(--nb-ink);
  cursor: pointer;
}
.nb-carousel__btn:hover {
  border-color: var(--nb-teal);
}
.nb-carousel__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nb-carousel__btn .nb-icon-play {
  fill: currentColor;
  stroke-width: 1.5;
}
.nb-carousel--playing .nb-icon-play,
.nb-carousel:not(.nb-carousel--playing) .nb-icon-pause {
  display: none;
}
.nb-carousel__dots {
  display: flex;
  align-items: center;
}
.nb-carousel__dot {
  width: 26px;
  height: 44px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.nb-carousel__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b9dcd9;
  transition: width 0.2s, background 0.2s;
}
.nb-carousel__dot[aria-current="true"]::before {
  width: 20px;
  border-radius: 5px;
  background: var(--nb-teal);
}
.nb-carousel__btn:focus-visible,
.nb-carousel__dot:focus-visible,
.nb-btn:focus-visible {
  outline: 3px solid var(--nb-plum);
  outline-offset: 3px;
}

/* ---- Slides ------------------------------------------------------------- */
/* All slides share one grid cell, so the track is always as tall as its
   tallest slide and nothing below moves between slides. The min-height holds
   that space while the catalogue loads: the photo column's height (it scales
   with the width) or the copy column's (measured 405-463px at 761-1366px),
   whichever is taller. */
.nb-carousel__slides {
  order: 1;
  display: grid;
  min-height: max(
    470px - (100vw - 761px) * 0.1,
    calc((min(100vw, 1160px) - 5.25rem) * 0.3842 + 1.5rem + 12px)
  );
  touch-action: pan-y;
}
.nb-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.nb-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* The photo sits on a sun-yellow "lid", tilted like a box set down on a
   table: the one loud thing in the hero. */
.nb-slide__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0.75rem 0.75rem 0.75rem 0;
}
.nb-slide__media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: var(--nb-sun);
  transform: translate(14px, 14px) rotate(2deg);
}
.nb-slide__media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 6px solid #fff;
  box-shadow: 0 18px 36px -20px rgba(27, 42, 74, 0.6);
  transform: rotate(-1.5deg);
  background: #e3f4f2;
}

.nb-slide__name {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0;
}
.nb-slide__grade {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #f1e6ec;
  color: var(--nb-plum);
  font-weight: 600;
  font-size: 0.9rem;
}
.nb-slide__tagline {
  margin: 0.8rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}
.nb-slide__teaches {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--nb-ink-soft);
}
.nb-slide__teaches strong {
  color: var(--nb-ink);
}
.nb-slide__price {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--nb-ink-soft);
}
.nb-slide__price strong {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--nb-ink);
}
.nb-slide__price--sale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.6rem;
}
.nb-fest {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--nb-sun);
  color: var(--nb-ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.nb-was {
  color: var(--nb-ink-soft);
  font-size: 1.05rem;
}
.nb-save {
  color: var(--nb-plum);
  font-weight: 700;
}
.nb-slide__delivery {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--nb-ink-soft);
}
.nb-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--nb-teal);
  color: #fff;
  font-family: var(--nb-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(13, 148, 136, 0.9);
}
.nb-btn:hover {
  background: var(--nb-teal-deep);
}
.nb-btn--ghost {
  background: #fff;
  color: var(--nb-ink);
  box-shadow: inset 0 0 0 2px var(--nb-mint);
}
.nb-btn--ghost:hover {
  background: #eaf7f6;
  box-shadow: inset 0 0 0 2px var(--nb-teal-soft);
}
.nb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Loading placeholder and the store-unreachable slide */
.nb-slide--loading .nb-slide__media,
.nb-sk {
  border-radius: 18px;
  background: linear-gradient(100deg, #e3f1ef 30%, #f4faf9 50%, #e3f1ef 70%);
  background-size: 200% 100%;
  animation: nb-sk 1.2s infinite;
}
.nb-slide--loading .nb-slide__media::before {
  content: none;
}
.nb-sk {
  display: block;
  height: 16px;
  margin: 0.9rem 0;
  border-radius: 8px;
}
@keyframes nb-sk {
  to {
    background-position: -200% 0;
  }
}
.nb-slide__media--tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 1.4rem;
  border-radius: 22px;
  background: var(--nb-mint);
}
.nb-slide__media--tiles::before {
  content: none;
}
.nb-slide__media--tiles span {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 0 6px 0 rgba(27, 42, 74, 0.12);
}
.nb-slide__media--tiles span:nth-child(2n) {
  background: var(--nb-sun);
}
.nb-slide__media--tiles span:nth-child(3) {
  transform: rotate(4deg);
}
.nb-slide__media--tiles span:nth-child(4) {
  transform: rotate(-5deg);
}

/* ---- How a game box teaches -------------------------------------------- */
.nb-teach {
  background: #dff3f2;
}
.nb-teach__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
}
.nb-teach__title {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
}
.nb-teach__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}
.nb-teach__list li {
  border-top: 4px solid var(--nb-teal-soft);
  padding-top: 0.85rem;
}
.nb-teach__list li:nth-child(2) {
  border-color: var(--nb-sun);
}
.nb-teach__list li:nth-child(3) {
  border-color: var(--nb-plum);
}
.nb-teach__list li:nth-child(4) {
  border-color: var(--nb-teal);
}
.nb-teach__list h3 {
  font-family: var(--nb-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.nb-teach__list p {
  margin: 0;
  line-height: 1.5;
  color: var(--nb-ink-soft);
}

/* ---- Closing calls to action ------------------------------------------- */
.nb-close {
  background: #f6fbfa;
}
.nb-close__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  isolation: isolate; /* the lids sit behind the panels, over the band */
}
.nb-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: 22px;
}
/* Each panel sits on a tilted lid, like the hero's photos. */
.nb-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 22px;
  transform: translate(12px, 12px) rotate(1.5deg);
}
.nb-cta--school {
  background: var(--nb-teal-deep);
  color: #fff;
}
.nb-cta--school::before {
  background: var(--nb-sun);
}
.nb-cta--home {
  background: var(--nb-sun);
}
.nb-cta--home::before {
  background: var(--nb-teal-soft);
  transform: translate(-12px, 12px) rotate(-1.5deg);
}
.nb-cta h2 {
  font-family: var(--nb-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin: 0;
}
.nb-cta p {
  flex: 1;
  margin: 0.6rem 0 1.4rem;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.5;
}
.nb-cta .nb-btn {
  line-height: 1.2;
  text-align: center;
}
.nb-cta--school .nb-btn {
  background: var(--nb-sun);
  color: var(--nb-ink);
}
.nb-cta--school .nb-btn:hover {
  background: #f9cd45;
}
.nb-cta--school .nb-btn:focus-visible {
  outline-color: #fff;
}

/* ---- Footer ------------------------------------------------------------- */
.nb-foot {
  background: #dff3f2;
}
.nb-foot__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}
.nb-foot__about img {
  width: 9.5rem;
}
.nb-foot__about p {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  line-height: 1.5;
  color: var(--nb-ink-soft);
}
.nb-foot h2 {
  font-family: var(--nb-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.nb-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nb-foot__links {
  columns: 2;
}
.nb-foot li a {
  display: inline-block;
  padding: 0.25rem 0;
  color: var(--nb-ink);
  text-decoration: underline;
  text-decoration-color: var(--nb-teal-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nb-foot li a:hover {
  color: var(--nb-teal-deep);
}
.nb-foot li a:focus-visible {
  outline: 3px solid var(--nb-plum);
  outline-offset: 2px;
  border-radius: 4px;
}
.nb-foot__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #c5e7e4;
  font-size: 0.9rem;
  color: var(--nb-ink-soft);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .nb-teach__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Phones: a wider, shorter photo and the controls under the slide, so Buy
   is on the first screen. (In the DOM the controls stay first, so the
   pause/play button is still the first stop when tabbing in.) */
@media (max-width: 760px) {
  .nb-hero__inner {
    padding: 1.1rem 1rem 1.25rem;
  }
  .nb-hero__intro {
    margin-bottom: 0.9rem;
  }
  .nb-hero__about {
    margin-bottom: 1rem;
  }
  /* One line from 320 px up. */
  .nb-hero__brand {
    font-size: min(1.15rem, 4.4vw);
  }
  .nb-hero__what {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.25rem;
  }
  /* Photo (16:9 of the width) + gap + the copy, which wraps to more lines
     on narrower phones (measured 293-446px at 320-760px). */
  .nb-carousel__slides {
    min-height: calc(
      (100vw - 2.6rem) * 0.5625 + 1.5rem +
      max(296px, 402px - (100vw - 360px) * 1.2)
    );
  }
  /* Dots on their own row (11 games don't fit beside the buttons on a
     phone); the row is held open while loading so nothing shifts. */
  .nb-carousel__controls {
    flex-wrap: wrap;
    margin-top: 0.9rem;
  }
  .nb-carousel__dots {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .nb-hero__title {
    font-size: 1.75rem;
  }
  .nb-hero__sub {
    font-size: 0.9rem;
    margin-top: 0.35rem;
  }
  .nb-slide {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    align-items: start;
    align-content: start;
  }
  .nb-slide__media {
    aspect-ratio: 16 / 9;
    margin: 0 0.6rem 0.6rem 0;
  }
  .nb-slide__media::before {
    transform: translate(9px, 9px) rotate(1.5deg);
  }
  .nb-slide__media img {
    border-width: 4px;
    transform: rotate(-1deg);
  }
  .nb-slide__name {
    display: inline;
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }
  .nb-slide__grade {
    vertical-align: 0.2em;
    margin-top: 0;
    font-size: 0.82rem;
  }
  .nb-slide__tagline {
    margin-top: 0.5rem;
    font-size: 1rem;
  }
  .nb-slide__teaches {
    font-size: 0.93rem;
    line-height: 1.5;
  }
  .nb-slide__price {
    margin-top: 0.7rem;
  }
  .nb-slide__actions {
    margin-top: 0.8rem;
  }
  .nb-slide__actions .nb-btn {
    flex: 1;
    padding: 0.7rem 1rem;
  }
}
@media (max-width: 560px) {
  .nb-teach__list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
/* Below 1000 px the footer's about line goes full width, with Contact and
   Explore side by side under it; on phones the panels stack too. */
@media (max-width: 1000px) {
  .nb-foot__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
  }
  .nb-foot__about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .nb-close__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.25rem 2.5rem;
  }
  .nb-cta {
    padding: 1.4rem 1.25rem 1.5rem;
  }
  .nb-cta .nb-btn {
    align-self: stretch;
  }
  .nb-cta::before {
    transform: translate(8px, 8px) rotate(1.5deg);
  }
  .nb-cta--home::before {
    transform: translate(-8px, 8px) rotate(-1.5deg);
  }
  .nb-foot__inner {
    padding: 2rem 1rem 1.5rem;
  }
  .nb-foot__links {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-slide,
  .nb-carousel__dot::before {
    transition: none;
  }
  .nb-sk,
  .nb-slide--loading .nb-slide__media {
    animation: none;
  }
}
