@font-face {
  font-family: Ubuntu;
  src: url('../assets/ubuntu-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Ubuntu;
  src: url('../assets/ubuntu-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #7b4c14;
  --teal: #66a1aa;
  /* Текст и подвал. С белым и на белом контраст 5,6:1. */
  --teal-ink: #3d6f78;
  --green: #c6de83;
  --pink: #fff6f3;
  --line: #c7dadd;
  --yellow: #f5da6f;
  --orange: #dd6c38;
  --purple: #9d28c9;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font:
    20px/1.4 Ubuntu,
    Arial,
    sans-serif;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
}
h1,
h2 {
  color: var(--teal-ink);
}
h1 {
  font-size: 42px;
  line-height: 1.3;
}
h2 {
  font-size: 36px;
  line-height: 1.23;
}
h3 {
  font-size: 22px;
  line-height: 1.36;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button {
  border: 0;
  background: none;
}
button,
a,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex='0']:focus-visible {
  outline: 3px solid #885500;
  outline-offset: 5px;
}
button:hover:not(:disabled),
a:hover {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 20;
  padding: 12px;
  background: #fff;
}
.skip-link:focus {
  top: 12px;
}
.page {
  width: min(1040px, calc(100% - 48px));
  margin: 24px auto;
}
.page:focus {
  outline: none;
}
.inset {
  margin-left: 40px;
  margin-right: 40px;
}
.section-intro {
  font-size: 24px;
  line-height: 29px;
  text-align: center;
  margin-top: 20px;
}
.stories {
  margin-top: 8px;
}
.stories h2 {
  text-align: center;
  line-height: 44px;
}
.benefits {
  margin-top: 20px;
}
.benefits > h2 {
  text-align: center;
  font-size: 32px;
  line-height: 42px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.advantage {
  background: #dfeab2;
  padding: 24px;
  border-radius: 20px;
  min-width: 0;
}
.advantage h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 30px;
}
.advantage h3 img {
  width: 36px;
  height: 36px;
  flex: none;
}
.advantage p {
  font-size: 20px;
  line-height: 28px;
  margin-top: 10px;
}
.faq {
  margin-top: 64px;
}
.faq h2 {
  text-align: center;
  font-size: 36px;
  line-height: 44px;
}
.text-button {
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-toggle {
  display: block;
  margin: 20px 0 20px auto;
  font-size: 18px;
  line-height: 44px;
}
.faq-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.faq details + details {
  border-top: 1px solid var(--line);
}
.faq details[open] {
  background: var(--pink);
}
.faq summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 20px 70px 20px 22px;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] .faq-sign::before {
  content: '−';
}
.faq details > p {
  font-size: 20px;
  line-height: 28px;
  padding: 0 70px 24px 22px;
}
.center-cta {
  text-align: center;
  margin: 64px auto;
}
.center-cta .paint-button {
  width: 298px;
  min-height: 72px;
  font-size: 35px;
}
.book-stats {
  position: relative;
  min-height: 305px;
}
.stats-backdrop {
  position: absolute;
  top: 0;
  left: 0.87%;
  width: 96.2%;
  z-index: -1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 50px;
  text-align: center;
  color: #111;
  font-size: 24px;
  line-height: 29px;
}
.stats-grid p {
  margin-top: 12px;
}
.badge {
  width: 220px;
  height: 190px;
  margin: 0 auto;
  position: relative;
}
.badge img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}
.badge span {
  position: absolute;
  top: 55px;
  left: 0;
  width: 82%;
  text-align: center;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  transform: rotate(-18deg);
}
.badge b {
  font-size: 50px;
  line-height: 1.1;
}
.badge-format span {
  transform: rotate(15deg);
  top: 40px;
}
.badge-pages span {
  transform: rotate(-17deg);
  top: 30px;
}
.site-footer {
  position: relative;
  background: var(--teal-ink);
  margin-top: 210px;
  color: #fff;
  min-height: 464px;
  padding: 25px 0 34px;
}
.footer-wave {
  position: absolute;
  bottom: calc(100% - 10px);
  left: 0;
  width: 100%;
  height: auto;
  overflow: hidden;
  pointer-events: none;
}
.footer-wave img {
  width: 100%;
  max-width: none;
  height: auto;
}
.footer-inner {
  width: calc(100% - 180px);
  max-width: 1260px;
  margin: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 420fr 225fr 465fr;
  gap: 75px;
  min-height: 288px;
}
.footer-book h2 {
  color: #fff;
  font-size: 33px;
  line-height: 43px;
}
.footer-book p {
  margin-top: 15px;
  font-size: 21px;
  line-height: 27px;
}
.footer-book p + p {
  font-size: 20.25px;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10.5px;
}
.footer-top h3 {
  font-size: 21px;
  line-height: 27px;
  color: #fff;
}
.footer-nav a {
  font-size: 19.5px;
  line-height: 25px;
  text-decoration: none;
}
.footer-contact {
  gap: 15px;
}
.footer-contact .mail {
  font-size: 21px;
  line-height: 27px;
  text-decoration: none;
}
.social-links {
  display: flex;
  gap: 27px;
}
.social-links > a,
.social-links > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.social-links img {
  width: 40px;
  height: 40px;
}
.wb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--purple);
  color: #fff;
  border-radius: 12px;
  min-height: 60px;
  padding: 16px 20px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.external-icon {
  width: 20px;
  height: 20px;
}
.wb-footer {
  position: relative;
  min-height: 53px;
  width: 229px;
  max-width: 100%;
  background: transparent;
  isolation: isolate;
}
.wb-footer::before {
  content: '';
  position: absolute;
  inset: -6px -10px -10px -6px;
  background: url('../assets/9f0c9.svg') center/100% 100% no-repeat;
  z-index: -1;
}
.footer-bottom {
  border-top: 1px solid #ffffff59;
  padding-top: 36px;
  display: grid;
  grid-template-columns: 420fr 465fr;
  gap: 375px;
  font-size: 18px;
  line-height: 23px;
  margin-top: 25px;
}
.footer-bottom p + p {
  margin-top: 12px;
}
.footer-bottom > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-bottom button {
  font-size: 18px;
}
.buy-page .page > h1 {
  margin: 24px 0 32px;
}
.purchase {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 48px;
}
.purchase-book {
  background: var(--pink);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}
.purchase-book > img {
  width: 260px;
  height: 330px;
  object-fit: contain;
  margin: 0 auto 16px;
}
.purchase-book strong {
  font-size: 20px;
  line-height: 28px;
}
.purchase-book figcaption span {
  display: block;
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
}
.purchase-info h2 {
  font-size: 30px;
  line-height: 39px;
  margin-bottom: 16px;
}
.purchase-info p {
  margin: 16px 0;
  font-size: 20px;
  line-height: 30px;
}
.purchase-specs {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  color: #111;
  font-size: 18px;
  line-height: 24px;
  margin: 20px 0;
}
.purchase-info h3 {
  font-size: 22px;
  line-height: 30px;
}
.purchase-info p.price-note {
  margin: 8px 0 16px;
  color: #111;
  font-size: 18px;
  line-height: 26px;
}
.purchase-info .small {
  font-size: 16px;
  line-height: 24px;
  margin: 16px 0;
}
.purchase-info > a:last-child {
  font-size: 18px;
}
.how-to-buy {
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 32px;
  padding: 24px 28px;
}
.how-to-buy h2 {
  font-size: 26px;
  line-height: 34px;
}
.how-to-buy p {
  font-size: 18px;
  line-height: 26px;
  margin-top: 12px;
}
.buy-page .site-footer {
  margin-top: 205px;
}
.bonus-page .page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bonus-intro {
  padding: 40px;
  border-radius: 40px;
  background: var(--pink);
}
.bonus-intro h1 {
  margin-bottom: 20px;
}
.bonus-intro p {
  font-size: 22px;
  line-height: 32px;
}
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.download-card {
  padding: 28px;
  background: var(--pink);
  border-radius: 30px;
}
.file-tag {
  display: inline-block;
  padding: 8px;
  border-radius: 8px;
  background: var(--green);
  font-size: 16px;
  font-weight: 700;
}
.download-card h2 {
  font-size: 30px;
  line-height: 39px;
  margin: 20px 0;
}
.download-card p {
  font-size: 18px;
  line-height: 26px;
  color: var(--teal-ink);
  margin-bottom: 18px;
}
.flat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 12px 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
}
.flat-button.secondary {
  background: #fff;
}
.download-card .flat-button {
  width: 100%;
}
.download-preview {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 8px;
  box-shadow: 0 3px 12px #7b4c141a;
}
.game-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--green);
  border-radius: 28px;
}
.qr-placeholder {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed var(--teal-ink);
  border-radius: 16px;
  background: #fff;
  color: var(--teal-ink);
  gap: 12px;
}
.qr-placeholder strong {
  font-size: 50px;
  line-height: 1.2;
}
.qr-placeholder span {
  font-size: 14px;
}
.game-card h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 32px;
  line-height: 42px;
}
.android-logo {
  flex: none;
  width: 36px;
  height: 36px;
  margin-top: 3px;
}
.game-card p {
  margin: 20px 0 16px;
  font-size: 22px;
  line-height: 31px;
}
.game-card .flat-button {
  width: 280px;
  max-width: 100%;
}
.bonus-note {
  background: var(--green);
  border-radius: 24px;
  padding: 28px;
}
.bonus-note h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 34px;
  margin-bottom: 12px;
}
.bonus-note p {
  font-size: 20px;
  line-height: 28px;
}
.bonus-page .site-footer {
  margin-top: 190px;
}
.author-story {
  position: relative;
  margin: 16px 58px 0 27px;
  padding: 64px 39px 80px;
  color: #010101;
  background: var(--pink);
  border-radius: 120px;
}
.author-story h1 {
  font-size: 37.58px;
  line-height: 45px;
  text-align: center;
  margin-bottom: 36px;
}
.author-story p {
  font-size: 23.49px;
  line-height: 28.19px;
  margin-top: 28px;
}
.author-story p:first-of-type {
  margin-top: 0;
}
.author-after {
  display: grid;
  grid-template-columns: 550px 256px;
  justify-content: space-between;
  align-items: center;
  margin: 0 74px 0 0;
  min-height: 328px;
  position: relative;
}
.author-link {
  background: var(--green);
  border-radius: 100px;
  padding: 30px 60px;
  color: #010101;
}
.author-link h2 {
  color: #010101;
  font-size: 20.88px;
  line-height: 25px;
  margin-bottom: 25px;
}
.author-link p {
  font-size: 20.88px;
  line-height: 25px;
}
.author-link a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-photo {
  width: 256px;
  height: 328px;
  object-fit: cover;
  margin-top: -48px;
}
.author-page .site-footer {
  margin-top: 180px;
}
.about-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 25px;
  color: #010101;
}
.about-flow h1 {
  font-size: 38px;
  text-align: center;
}
.about-flow > p:first-of-type {
  text-align: center;
}
.about-flow h2 {
  font-size: 38px;
  line-height: 46px;
  color: var(--ink);
  margin: 36px 0 8px 10%;
}
.about-flow > p {
  font-size: 26px;
  line-height: 31px;
  margin: 0 7%;
}
.about-specs {
  background: var(--pink);
  border-radius: 70px;
  padding: 40px 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  column-gap: 20px;
  row-gap: 2px;
  align-items: center;
  position: relative;
  margin: 20px 30px;
}
.about-specs h2 {
  font-size: 26px;
  grid-column: 1;
  margin: 0;
  align-self: end;
}
.about-specs ul {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.45;
}
.about-specs > img {
  max-height: 330px;
  width: auto;
  object-fit: contain;
}
.about-specs > img:nth-last-child(2) {
  grid-column: 2;
  grid-row: 1/3;
}
.about-specs > img:last-child {
  grid-column: 3;
  grid-row: 1/3;
}
.book-spread {
  width: 94%;
  height: auto;
  margin: 12px auto 0;
}
.about-flow > .paint-button {
  align-self: center;
  width: 306px;
  min-height: 74px;
  font-size: 36px;
  margin: 30px 0 12px;
}
.about-page .site-footer {
  margin-top: 180px;
}
.policy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
}
.policy-intro,
.policy-section {
  background: var(--pink);
  border-radius: 28px;
  padding: 28px 40px;
}
.policy-intro h1 {
  font-size: 40px;
  line-height: 1.4;
  margin: 16px 0;
}
.draft {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-ink);
}
.policy-intro > p:last-child {
  font-size: 20px;
}
.policy-section h2 {
  font-size: 24px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.policy-section p {
  font-size: 20px;
  line-height: 1.45;
}
.policy-section p + p {
  margin-top: 14px;
}
.policy-section a {
  overflow-wrap: anywhere;
}
.policy-section ul {
  padding-left: 24px;
}
.privacy-page .site-footer {
  margin-top: 190px;
}
.error-card {
  margin: 24px auto;
  padding: 48px;
  max-width: 1040px;
  background: var(--pink);
  border-radius: 28px;
}
.error-code {
  color: var(--teal-ink);
  font-size: 76px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.error-card h1 {
  font-size: 40px;
  margin-bottom: 16px;
}
.error-card > p:not(.error-code) {
  max-width: 740px;
  font-size: 22px;
  line-height: 32px;
}
.error-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}
.error-page .site-footer {
  margin-top: 200px;
}
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  width: 420px;
  max-width: calc(100% - 48px);
  padding: 24px;
  background: var(--pink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 16px #0002;
  color: var(--ink);
}
.cookie-banner h2 {
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 12px;
}
.cookie-banner p {
  font-size: 14px;
  line-height: 20px;
}
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.cookie-actions .flat-button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 12px;
}
.cookie-links {
  display: flex;
  gap: 16px;
  font-size: 12px;
  line-height: 18px;
  margin-top: 12px;
}
.cookie-links button {
  font-size: 12px;
}
dialog {
  width: 420px;
  max-width: calc(100% - 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--pink);
  color: var(--ink);
  box-shadow: 0 12px 60px #0003;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
dialog::backdrop {
  background: #183a3f66;
}
dialog h2 {
  color: var(--ink);
  font-size: 26px;
  line-height: 34px;
  margin-bottom: 18px;
}
dialog p {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 18px;
}
dialog .flat-button {
  width: 100%;
}
.consent-dialog {
  width: 640px;
  border-radius: 20px;
}
.consent-dialog h2 {
  font-size: 25px;
}
.consent-dialog p {
  font-size: 16px;
  line-height: 23px;
}
.consent-dialog a {
  color: inherit;
}
@media (min-width: 1600px) {
  .footer-wave img {
    height: 190px;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .section-intro {
    font-size: 21px;
  }
  .inset {
    margin-left: 20px;
    margin-right: 20px;
  }
  .benefits > h2 {
    font-size: 28px;
    line-height: 36px;
  }
  .advantage h3 {
    font-size: 20px;
    line-height: 27px;
  }
  .advantage p {
    font-size: 18px;
    line-height: 26px;
  }
  .stats-grid {
    font-size: 20px;
    line-height: 26px;
  }
  .badge {
    width: 190px;
    height: 175px;
  }
  .badge span {
    font-size: 18px;
    top: 48px;
  }
  .badge b {
    font-size: 42px;
  }
  .footer-inner {
    width: calc(100% - 80px);
  }
  .footer-top {
    gap: 35px;
    grid-template-columns: 1.2fr 0.7fr 1fr;
  }
  .footer-book h2 {
    font-size: 28px;
  }
  .footer-book p,
  .footer-contact .mail {
    font-size: 18px;
  }
  .footer-bottom {
    gap: 100px;
  }
  .purchase {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
  .author-story {
    margin-left: 0;
    margin-right: 0;
    padding: 48px;
    border-radius: 80px;
  }
  .author-story h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .author-story p {
    font-size: 21px;
    line-height: 28px;
  }
  .author-after {
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    margin: 0 24px;
  }
  .author-link {
    padding: 32px;
  }
  .author-photo {
    width: 100%;
    height: auto;
  }
  .about-specs {
    padding: 32px;
    column-gap: 16px;
    row-gap: 2px;
  }
  .about-specs ul {
    font-size: 21px;
  }
  .about-flow h2 {
    font-size: 32px;
  }
  .about-flow > p {
    font-size: 22px;
    line-height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.book-stats {
  isolation: isolate;
}
@media (min-width: 901px) {
  .about-flow > h1 {
    font-size: 37.58px;
    line-height: 46px;
    color: var(--teal-ink);
  }
  .about-specs {
    background: transparent url('../assets/12c59.svg') center/100% 100% no-repeat;
    border-radius: 0;
  }
  .about-flow > .step-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 38px;
    color: var(--teal-ink);
    margin: 40px 0 8px 16%;
  }
  .step-title::before {
    content: '';
    display: block;
    flex: none;
    width: 78px;
    height: 80px;
    background: center/contain no-repeat;
  }
  .step-1::before {
    background-image: url('../assets/466c3.svg');
  }
  .step-2::before {
    background-image: url('../assets/be5f0.svg');
  }
  .step-3::before {
    background-image: url('../assets/97e0b.svg');
  }
  .step-4::before {
    background-image: url('../assets/8285b.svg');
  }
  .step-5::before {
    background-image: url('../assets/d1255.svg');
  }
  .about-detail-heading {
    display: none;
  }
  .about-final {
    position: relative;
    min-height: 360px;
    padding: 30px 6% 0 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
  }
  .about-final .about-giraffe {
    position: absolute;
    width: 268px;
    height: auto;
    left: -7px;
    top: 90px;
  }
  .about-final .about-slogan {
    width: 694px;
    height: auto;
    max-width: 100%;
  }
  .about-final .paint-button {
    width: 306px;
    min-height: 74px;
    font-size: 36px;
  }
  .about-flow > .about-seo {
    margin-top: 24px;
  }
  .author-link {
    padding-left: 60px;
    padding-right: 30px;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .about-flow > .step-title {
    font-size: 30px;
    gap: 12px;
    margin-left: 8%;
  }
  .step-title::before {
    width: 60px;
    height: 62px;
  }
  .about-final .about-giraffe {
    width: 220px;
  }
}
.about-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 901px) {
  .author-story {
    background: transparent url('../assets/a313c.svg') center/100% 100% no-repeat;
    border-radius: 0;
  }
  .author-link {
    background: transparent url('../assets/6d268.svg') center/100% 100% no-repeat;
    border-radius: 0;
  }
  .about-details {
    background: transparent url('../assets/5e1c1.svg') center/100% 100% no-repeat;
    padding: 20px 0 40px;
  }
  .about-flow .step-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 38px;
    color: var(--teal-ink);
    margin: 40px 0 8px 16%;
  }
  .about-details > p {
    font-size: 26px;
    line-height: 31px;
    margin: 0 7%;
  }
  .about-invitation {
    display: none;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .about-flow .step-title {
    font-size: 30px;
    gap: 12px;
    margin-left: 8%;
  }
  .about-details > p {
    font-size: 22px;
    line-height: 30px;
  }
}
/* Shared controls: center text in the visible face, with padding for wrapped labels. */
.paint-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 60px;
  width: 224px;
  max-width: 100%;
  padding: 12px 20px;
  border: 3px solid #fa8a24;
  border-radius: 10px;
  background: var(--yellow);
  color: #a95b10;
  box-shadow: 4px 4px 0 #84939f;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}
.paint-button.light {
  border-color: var(--yellow);
  background: #fff;
}
.center-cta .paint-button,
.about-flow > .paint-button,
.about-final .paint-button {
  width: 298px;
  min-height: 64px;
  font-size: 28px;
}
.flat-button,
.wb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  white-space: normal;
}
@media (max-width: 900px) {
  .wb-footer {
    background: #d956ef;
    border-radius: 12px;
    box-shadow: 2px 3px 0 #557d86;
  }
  .wb-footer::before {
    display: none;
  }
}
@media (min-width: 901px) {
  .wb-footer {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
  }
  .wb-footer::before {
    display: block;
  }
  .about-final .paint-button {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #dc851c;
    isolation: isolate;
    width: 298.24px;
    min-height: 72.39px;
    padding: 10px 20px 16px;
    font-size: 34.746px;
    line-height: 42px;
  }
  .about-final .paint-button::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -4.6px -11.75px -11.77px -4.6px;
    background: url('../assets/home-buy-button.svg') center/100% 100% no-repeat;
  }
}

/* Navigation remains roomy on desktop and switches before labels can collide. */
.site-header {
  position: relative;
  min-height: 190px;
  padding: 78px 24px 46px;
  background: linear-gradient(to bottom, #fff 58px, var(--green) 58px);
}
.site-header::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 3.5%;
  width: 93%;
  height: 44px;
  background: url('../assets/50d80.svg') center / 100% 100% no-repeat;
}
.desktop-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 1200px);
  margin: 0 auto;
}
.nav-link {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 66px;
  padding: 6px 10px 12px;
  background: center / 100% 100% no-repeat;
  color: var(--orange);
  font-size: clamp(18px, 1.72vw, 25px);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.nav-link > span:first-child {
  display: block;
}
.nav-0 {
  background-image: url('../assets/93d2b.svg');
  padding-left: 40px;
}
.nav-1 {
  background-image: url('../assets/ce554.svg');
}
.nav-2 {
  background-image: url('../assets/0beed.svg');
}
.nav-3 {
  background-image: url('../assets/6d5ad.svg');
}
.nav-4 {
  background-image: url('../assets/8463b.svg');
}
.free-label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -10px;
  top: calc(100% - 32px);
  width: 109px;
  height: 60px;
  padding: 10px;
  background: url('../assets/39716.svg') center / contain no-repeat;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.free-label > span {
  transform: rotate(-11.95deg);
}

/* The hero uses a real layout and two intact words, rather than positioned letters. */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  position: relative;
  isolation: isolate;
  min-height: 450px;
  padding: 16px 18px 28px;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-backdrop img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.hero-backdrop img:last-child {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  object-fit: fill;
}
.hero-cover {
  position: relative;
  min-width: 0;
}
.hero-book {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}
.hello {
  display: grid;
  place-items: center;
  position: absolute;
  left: 72%;
  top: 20%;
  width: 116px;
  height: 102px;
  padding: 20px 12px;
  background: url('../assets/figma-34-8294.svg') center / contain no-repeat;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.hello span {
  transform: rotate(22deg);
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-right: 132px;
}
.hero h1 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
}
.hero-heading {
  color: #64a0aa;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.hero-heading span {
  display: block;
  color: #e96576;
}
.hero-description {
  font-size: 23px;
  line-height: 1.3;
  text-align: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: calc(100% + 132px);
  max-width: 480px;
  margin-top: 20px;
}
.hero-actions .paint-button {
  flex: 1 1 200px;
  width: auto;
  padding: 12px 10px;
  font-size: 23px;
}
.hero-note {
  display: grid;
  place-items: center;
  position: absolute;
  top: 82px;
  right: 12px;
  width: 144px;
  min-height: 106px;
  padding: 20px 14px 20px 20px;
  filter: drop-shadow(5px 7px 4px #0002);
}
.hero-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 6% 50%);
}
.hero-note p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* Illustration shapes stay intact; the card background and radius are independent. */
.stories {
  margin-top: 28px;
}
.stories h2 {
  text-align: center;
  line-height: 1.25;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 28px auto 0;
}
.story-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  border-radius: 18px;
  background: var(--pink);
}
.story-illustration {
  display: grid;
  place-items: center;
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 340px;
  height: 280px;
}
.story-illustration > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.story-card figcaption {
  position: static;
  width: auto;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
}
.story-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-ink);
  font-size: 23px;
  line-height: 1.3;
}
.professions {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #333;
  font-size: 14px;
  line-height: 1.2;
}
.professions span {
  position: absolute;
}
.professions span:nth-child(1) {
  top: 12%;
  left: 33%;
}
.professions span:nth-child(2) {
  top: 18%;
  left: 72%;
}
.professions span:nth-child(3) {
  top: 54%;
  left: 30%;
}
.professions span:nth-child(4) {
  top: 78%;
  left: 73%;
}

/* Bars are geometrically centered, independently of the font's baseline. */
.faq-sign {
  display: block;
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--line);
}
.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.faq-sign::after {
  width: 2px;
  height: 12px;
}
.faq details[open] .faq-sign::before {
  content: '';
}
.faq details[open] .faq-sign::after {
  display: none;
}

/* A two-page spread, with a separate two-sided leaf during a turn. */
.reader {
  margin-top: 40px;
  text-align: center;
  scroll-margin-top: 24px;
}
.reader .section-intro {
  margin-top: 12px;
}
.reader-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 16px;
  align-items: center;
  position: relative;
  margin-top: 28px;
  padding: 12px 0;
  min-width: 0;
  touch-action: pan-y;
}
.reader-book {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  width: 100%;
  aspect-ratio: 1.434;
  background: #fffdf8;
  border-radius: 3px;
  box-shadow:
    0 3px 0 #e6e0d3,
    0 6px 0 #f4f0e7,
    0 10px 24px #42351424;
  perspective: 1800px;
  isolation: isolate;
}
.book-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fffdf8;
}
.book-page-left {
  border-radius: 3px 0 0 3px;
  box-shadow: inset -6px 0 12px #0000000a;
}
.book-page-right {
  border-radius: 0 3px 3px 0;
  box-shadow: inset 6px 0 12px #0000000a;
}
.reader-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.reader-book::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 20px;
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    #00000014 45%,
    #00000030 50%,
    #00000012 55%,
    transparent
  );
}
.reader-arrow {
  display: grid;
  place-items: center;
  position: static;
  width: 56px;
  height: 70px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: none;
}
.reader-arrow img {
  display: block;
  width: 100%;
  height: auto;
}
.reader-arrow:disabled {
  opacity: 0.3;
}
.reader-count {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.4;
}
.book-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  z-index: 4;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}
.book-leaf.backward {
  left: 0;
  transform-origin: right center;
}
.book-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.book-face-back {
  transform: rotateY(180deg);
}
.book-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #00000016, transparent 18%, transparent 80%, #00000008);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .desktop-nav {
    gap: 14px;
  }
  .hero {
    grid-template-columns: 36% minmax(0, 1fr);
    gap: 18px;
  }
  .hero-content {
    padding-right: 110px;
  }
  .hero-heading {
    font-size: 40px;
  }
  .hero-description {
    font-size: 20px;
  }
  .hero-actions {
    width: calc(100% + 110px);
    gap: 14px;
  }
  .hero-actions .paint-button {
    flex-basis: 170px;
    font-size: 21px;
  }
  .hero-note {
    width: 120px;
    padding: 16px 10px;
  }
  .hero-note p {
    font-size: 13px;
  }
}

/* Desktop artwork wrappers preserve the existing mobile image layout. */
.hero-lettering {
  display: none;
}
.story-illustration > picture {
  display: contents;
}
.story-illustration > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
