/* Scoped to the public coloring pages; uses the existing LitPal palette and fonts. */
.mp-page {
  --mp-purple: #9333ea;
  --mp-deep: #5b21b6;
  --mp-ink: #111827;
  --mp-muted: #525b6b;
  color: var(--mp-ink);
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
  overflow: clip;
}
.mp-page * {
  box-sizing: border-box;
}
.mp-page h1,
.mp-page h2,
.mp-page h3,
.mp-page p,
.mp-page figure {
  margin: 0;
}
.mp-page h1,
.mp-page h2,
.mp-page h3 {
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.mp-page h1 {
  font-size: clamp(46px, 5.5vw, 80px);
  font-weight: 700;
}
.mp-page h1 span {
  color: var(--mp-purple);
}
.mp-page h2 {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 600;
}
.mp-page h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
.mp-page p {
  color: var(--mp-muted);
}
.mp-page a {
  color: var(--mp-deep);
  text-underline-offset: 4px;
}
.mp-page a:hover {
  text-decoration: underline;
}
.mp-page :is(a, summary):focus-visible {
  outline: 3px solid var(--mp-purple);
  outline-offset: 5px;
}
.mp-page [id] {
  scroll-margin-top: 110px;
}
.mp-container {
  width: min(1200px, calc(100% - 96px));
  margin: auto;
}
.mp-skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
}
.mp-skip:focus {
  top: 12px;
}
.mp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffffff5;
  border-bottom: 1px solid #f0eaf5;
}
.mp-nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none !important;
}
.mp-brand span {
  font-size: 12px;
  align-self: flex-start;
  padding-top: 10px;
  letter-spacing: 0;
}
.mp-nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
.mp-nav-links a {
  text-decoration: none;
  color: var(--mp-ink);
}
.mp-page .mp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: var(--mp-purple);
  color: #fff;
  border-radius: 9px;
  padding: 15px 24px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.4;
}
.mp-page .mp-button:hover {
  background: #7e22ce;
}
.mp-page .mp-small {
  padding: 11px 18px;
  font-size: 13px;
}
.mp-hero {
  background: linear-gradient(135deg, #fff 25%, #faf5ff);
  padding: 76px 0 86px;
}
.mp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 70px;
}
.mp-page .mp-eyebrow {
  color: var(--mp-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 23px;
}
.mp-page .mp-lead {
  font-size: 18px;
  line-height: 1.8;
  margin-top: 27px;
  max-width: 590px;
}
.mp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}
.mp-text-link {
  font-size: 14px;
  font-weight: 600;
}
.mp-page .mp-note {
  font-size: 12px;
  margin-top: 21px;
}
.mp-hero-art {
  position: relative;
  padding: 15px 0 20px;
}
.mp-hero-art .mp-example {
  transform: rotate(3deg);
  box-shadow: 0 24px 70px #5b21b61a;
  max-width: 430px;
  margin: auto;
}
.mp-example {
  background: white;
  border: 1px solid #e8e3ed;
  padding: 14px;
  border-radius: 9px;
}
.mp-example img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
.mp-example figcaption {
  font-weight: 600;
  font-size: 15px;
  padding: 16px 6px 5px;
  color: var(--mp-ink);
}
.mp-example figcaption span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--mp-muted);
  margin-top: 2px;
}
.mp-section {
  padding-top: 90px;
  padding-bottom: 90px;
}
.mp-section-heading {
  max-width: 650px;
  margin-bottom: 44px;
}
.mp-section-heading > p:last-child {
  margin-top: 20px;
  max-width: 560px;
}
.mp-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mp-three article {
  border-top: 1px solid #e9d5ff;
  padding-top: 25px;
}
.mp-number {
  display: block;
  color: var(--mp-purple);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 27px;
}
.mp-three h3 {
  margin-bottom: 15px;
}
.mp-tinted {
  background: #faf8fc;
}
.mp-gallery {
  gap: 26px;
}
.mp-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}
.mp-split > div > p:last-child {
  margin-top: 24px;
}
.mp-faq details {
  border-top: 1px solid #e8e3ed;
  padding: 23px 0;
}
.mp-faq details:last-child {
  border-bottom: 1px solid #e8e3ed;
}
.mp-faq summary {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--mp-ink);
}
.mp-faq p {
  margin-top: 13px;
  font-size: 15px;
}
.mp-cta {
  background: #faf5ff;
  text-align: center;
  padding: 80px 0;
}
.mp-cta h2 {
  margin-bottom: 30px;
}
.mp-footer {
  padding-top: 46px;
  padding-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 35px;
}
.mp-footer p {
  font-size: 13px;
}
.mp-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 12px;
}
.mp-footer small {
  width: 100%;
  font-size: 11px;
  color: var(--mp-muted);
}
.mp-guide-head {
  padding-top: 52px;
  padding-bottom: 60px;
}
.mp-guide-head .mp-eyebrow {
  margin-top: 43px;
}
.mp-guide-head h1 {
  font-size: clamp(48px, 6vw, 84px);
}
.mp-guide-head .mp-lead {
  max-width: 660px;
}
.mp-guide-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 730px);
  gap: 90px;
  align-items: start;
  padding-bottom: 80px;
}
.mp-contents {
  position: sticky;
  top: 120px;
  border-top: 1px solid #e9d5ff;
  padding-top: 22px;
}
.mp-contents a {
  display: block;
  font-size: 13px;
  text-decoration: none;
  padding: 7px 0;
}
.mp-guide-body section {
  padding: 36px 0;
  border-top: 1px solid #e8e3ed;
}
.mp-guide-body h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.mp-guide-body p + p {
  margin-top: 18px;
}
.mp-guide-body .mp-example {
  margin: 30px auto 0;
  max-width: 470px;
}
.mp-callout {
  margin-top: 26px;
  padding: 26px 30px;
  background: #faf5ff;
  border-left: 3px solid #9333ea;
}
.mp-callout h3 {
  font-size: 21px;
}
.mp-callout ul {
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--mp-muted);
}
.mp-callout li + li {
  margin-top: 7px;
}
.mp-after {
  margin-top: 34px;
}
.mp-terms {
  margin-top: 0;
}
.mp-terms ul {
  margin-top: 0;
}
.mp-terms li + li {
  margin-top: 12px;
}
.mp-guide-next .mp-button {
  margin-top: 26px;
}
@media (max-width: 950px) {
  .mp-container {
    width: calc(100% - 48px);
  }
  .mp-nav-links {
    gap: 16px;
  }
  .mp-hero-grid {
    gap: 35px;
  }
  .mp-hero {
    padding: 55px 0;
  }
  .mp-split {
    gap: 45px;
  }
  .mp-three {
    gap: 20px;
  }
  .mp-guide-grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 35px;
  }
  .mp-footer nav {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .mp-container {
    width: calc(100% - 36px);
  }
  .mp-nav {
    height: 72px;
    gap: 12px;
  }
  .mp-nav-links {
    display: none;
  }
  .mp-hero-grid,
  .mp-three,
  .mp-split,
  .mp-guide-grid {
    grid-template-columns: 1fr;
  }
  .mp-hero-grid {
    gap: 40px;
  }
  .mp-hero {
    padding: 28px 0 60px;
  }
  .mp-page h1 {
    font-size: 49px;
    letter-spacing: -0.05em;
  }
  /* Keep the primary action on the first screen of a phone (ad clicks land here). */
  .mp-page .mp-hero h1 {
    font-size: 36px;
    letter-spacing: -0.04em;
  }
  .mp-page .mp-eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .mp-page .mp-lead {
    font-size: 16px;
    margin-top: 22px;
  }
  .mp-hero-art {
    max-width: 350px;
    margin: auto;
  }
  .mp-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .mp-section-heading {
    margin-bottom: 32px;
  }
  .mp-three {
    gap: 28px;
  }
  .mp-three article {
    padding-top: 18px;
  }
  .mp-number {
    margin-bottom: 16px;
  }
  .mp-gallery {
    max-width: 430px;
    margin: auto;
  }
  .mp-split {
    gap: 30px;
  }
  .mp-cta {
    padding: 60px 0;
  }
  .mp-footer {
    gap: 18px;
  }
  .mp-guide-head {
    padding-top: 35px;
    padding-bottom: 40px;
  }
  .mp-guide-head .mp-eyebrow {
    margin-top: 30px;
  }
  .mp-guide-grid {
    gap: 25px;
  }
  .mp-contents {
    position: static;
  }
  .mp-contents nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 15px;
  }
  .mp-contents .mp-eyebrow {
    grid-column: 1/-1;
  }
  .mp-guide-body h2 {
    font-size: 29px;
  }
  .mp-guide-body section {
    padding: 28px 0;
  }
  .mp-callout {
    padding: 22px;
  }
  .mp-guide-head h1 {
    font-size: 54px;
  }
}

/* Real product screenshots and the one-book showcase. */
.mp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e9e3f5;
  background: #fff;
  box-shadow: 0 24px 70px #5b21b61a;
}
.mp-shot figcaption,
.mp-book figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mp-muted);
}
.mp-step-shot,
.mp-step-pages {
  display: block;
  width: 100%;
  height: 220px;
  margin-bottom: 22px;
  border-radius: 10px;
  border: 1px solid #e9e3f5;
  background: #fff;
}
.mp-step-shot {
  object-fit: cover;
  object-position: top center;
}
.mp-step-pages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
}
.mp-step-pages img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.mp-book {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: start;
}
.mp-book img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e9e3f5;
  background: #fff;
}
.mp-book-pages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mp-book-spread {
  grid-column: 1 / -1;
  max-width: 760px;
}
@media (max-width: 650px) {
  .mp-book {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mp-book-pages {
    gap: 6px;
  }
  .mp-step-shot,
  .mp-step-pages {
    height: 200px;
  }
}

/*
 * First-visit consent banner on these public pages: layout only.
 * The banner component, its text, both choices and consent defaults are unchanged;
 * these rules only apply while a public marketing page is on screen (:has(.mp-page)),
 * so the app's other pages keep today's banner. Browsers without :has() keep it too.
 * 951px is where the hero becomes two columns with the CTA on the left.
 */
@media (min-width: 951px) {
  /* Dock the card bottom-right, clear of the left-aligned hero CTA. */
  body:has(.mp-page) [data-testid="cookie-consent-banner"] > div {
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
  }
}
@media (max-width: 950px) {
  /* Same text and choices with tighter spacing; Accept and Reject side by side, equal width. */
  body:has(.mp-page) [data-testid="cookie-consent-banner"] {
    padding: 8px;
  }
  body:has(.mp-page) [data-testid="cookie-consent-banner"] > div {
    padding: 12px 14px;
    border-radius: 14px;
  }
  body:has(.mp-page) [data-testid="cookie-consent-banner"] p {
    font-size: 12.5px;
    line-height: 1.4;
  }
  body:has(.mp-page) [data-testid="cookie-consent-banner"] p:first-child {
    margin-bottom: 2px;
  }
  body:has(.mp-page) [data-testid="cookie-consent-banner"] div:has(> [data-testid="cookie-accept"]) {
    flex-direction: row;
    margin-top: 10px;
  }
  body:has(.mp-page) [data-testid="cookie-consent-banner"] div:has(> [data-testid="cookie-accept"]) > button {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    min-height: 36px;
    white-space: normal;
  }
  /* Single-column hero: the primary action follows the headline, above the banner on first visit. */
  .mp-hero {
    padding-top: 36px;
  }
  .mp-page .mp-hero h1 {
    font-size: clamp(36px, 5vw, 46px);
  }
  .mp-hero-copy {
    display: flex;
    flex-direction: column;
  }
  .mp-hero-copy .mp-actions {
    order: 1;
    margin-top: 18px;
  }
  .mp-hero-copy .mp-note {
    order: 2;
  }
  .mp-hero-copy .mp-lead {
    order: 3;
  }
}
@media (max-width: 650px) {
  .mp-hero {
    padding-top: 18px;
  }
  .mp-hero .mp-eyebrow {
    margin-bottom: 12px;
  }
}
