* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.withdrawal-content { max-width: 800px; }
.withdrawal-form { display: grid; gap: 22px; margin: 30px 0; }
.withdrawal-form label { display: grid; gap: 8px; font-weight: 650; }
.withdrawal-form input { width: 100%; border: 1px solid var(--muted); border-radius: 12px; padding: 14px; background: var(--surface); color: var(--ink); font: inherit; }
.withdrawal-form small { font-weight: 400; color: var(--muted); }
.withdrawal-form fieldset { margin: 0; border: 1px solid var(--muted); border-radius: 16px; padding: 20px; min-width: 0; }
.withdrawal-form legend { padding: 0 8px; font-weight: 650; }
.withdrawal-form button { justify-self: start; cursor: pointer; }
.withdrawal-declaration { font-weight: 650; line-height: 1.7; }
.withdrawal-notice, .withdrawal-errors { padding: 18px; border-radius: 12px; background: color-mix(in srgb, var(--secondary) 10%, var(--surface)); }
.withdrawal-errors { border: 1px solid #ab3030; }
.withdrawal-receipt div { margin: 18px 0; }
.withdrawal-receipt dt { color: var(--muted); }
.withdrawal-receipt dd { margin: 4px 0 0; overflow-wrap: anywhere; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--background)), var(--background) 34%, color-mix(in srgb, var(--secondary) 8%, var(--background))),
    repeating-linear-gradient(90deg, rgba(95, 75, 182, .035) 0 1px, transparent 1px 36px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

.storybook-site {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 44%, color-mix(in srgb, var(--secondary) 8%, var(--surface)));
  border-bottom: 3px solid color-mix(in srgb, var(--accent) 68%, transparent);
  backdrop-filter: blur(12px);
}

.header-promise {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.promise-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}

.topbar.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: 8px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .36);
  content: "";
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span:first-child,
.menu-toggle span:first-child::before,
.menu-toggle span:first-child::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.menu-toggle span:first-child {
  position: relative;
}

.menu-toggle span:first-child::before,
.menu-toggle span:first-child::after {
  position: absolute;
  left: 0;
}

.menu-toggle span:first-child::before {
  top: -6px;
}

.menu-toggle span:first-child::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .95rem;
  font-weight: 700;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.nav a:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white !important;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #1f1b16 !important;
}

.button.ghost {
  background: rgba(255, 255, 255, .16);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, .5);
}

.button.small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: .92rem;
}

.mobile-order-bar {
  display: none;
}

.story-map-wrap {
  position: sticky;
  top: 72px;
  z-index: 18;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--background) 90%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 13%, transparent);
}

.story-map {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.story-map-title {
  flex: 0 0 auto;
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.story-map-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(39, 31, 61, .05);
}

.story-map-item:hover,
.story-map-item.is-active {
  border-color: color-mix(in srgb, var(--secondary) 42%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--secondary) 8%, var(--surface));
}

.story-map-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--primary);
}

.story-map-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--background) 96%, white)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 10px, transparent 10px 28px);
  content: "";
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 96px;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 56px;
  align-items: center;
}

.hero-layout > * {
  min-width: 0;
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f8d88b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: 4.25rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.3rem;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-promise-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-promise-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: .86rem;
  font-weight: 850;
}

.hero-book {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
}

.hero-cast-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 244, .96), rgba(255, 247, 235, .82));
  color: var(--ink);
  transform: rotate(1deg);
}

.book-cover {
  width: min(100%, 300px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 16px 18px 0 rgba(0, 0, 0, .18);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cast-card .book-cover {
  width: min(100%, 320px);
  aspect-ratio: 2 / 3;
  border-color: rgba(255, 255, 255, .75);
  box-shadow: 16px 18px 0 rgba(95, 75, 182, .14);
}

.book-details {
  display: grid;
  gap: 6px;
  padding: 4px 2px 0;
}

.hero-cast-card .book-details span {
  color: var(--secondary);
}

.hero-cast-card .book-details strong {
  color: var(--ink);
}

.hero-cast-card .book-details p {
  color: var(--muted);
}

.book-details span {
  color: #f8d88b;
  font-size: .84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.book-details strong {
  font-size: 1.05rem;
}

.book-details p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
}

.hero-character-strip {
  grid-column: 1 / -1;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: -4px auto -122px;
}

.hero-character {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  background: rgba(255, 250, 244, .86);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(21, 18, 34, .16);
}

.hero-character img {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 7px;
  object-fit: cover;
  object-position: center 34%;
}

.hero-character span {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: .84rem;
  font-weight: 900;
  text-align: center;
}

main {
  display: block;
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section[id] {
  scroll-margin-top: 168px;
}

.section.tinted {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--secondary) 10%, var(--background)), color-mix(in srgb, var(--accent) 10%, var(--background))),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, .28) 28px 30px);
}

.paper-section {
  padding: 54px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(95, 75, 182, .045) 30px 32px);
  box-shadow: 0 18px 52px rgba(39, 31, 61, .08);
}

.illustrated-section::before,
.paper-section::before {
  position: absolute;
  inset: -18px auto auto -14px;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, white), color-mix(in srgb, var(--secondary) 26%, white));
  opacity: .18;
  transform: rotate(-4deg);
  content: "";
  pointer-events: none;
}

.illustrated-section::after {
  position: absolute;
  right: -20px;
  bottom: 12px;
  width: 116px;
  height: 145px;
  background: var(--storybook-character-image) center / cover no-repeat;
  border: 8px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  opacity: .2;
  box-shadow: 0 18px 36px rgba(39, 31, 61, .12);
  content: "";
  pointer-events: none;
  transform: rotate(4deg);
}

.storybook-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 540px);
  gap: 24px;
  align-items: center;
  margin-top: -22px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--secondary) 24%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--accent)), color-mix(in srgb, var(--surface) 92%, var(--secondary))),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(95, 75, 182, .05) 38px 40px);
  box-shadow: 0 18px 48px rgba(39, 31, 61, .09);
  overflow: hidden;
}

.storybook-ribbon .ribbon-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-width: 0;
  align-self: end;
  border: 8px solid rgba(255, 255, 255, .68);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 58%;
  box-shadow: 0 18px 42px rgba(39, 31, 61, .12);
}

.ribbon-copy h2 {
  font-size: 1.78rem;
}

.ribbon-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ribbon-steps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(39, 31, 61, .07);
}

.ribbon-steps span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: .82rem;
}

.cast-section {
  overflow: hidden;
}

.cast-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.cast-group {
  position: sticky;
  top: 112px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, var(--accent));
  box-shadow: 0 22px 48px rgba(39, 31, 61, .1);
}

.cast-group img {
  width: 100%;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cast-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 248, 239, .84));
  box-shadow: 0 14px 34px rgba(39, 31, 61, .07);
}

.cast-card::after {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  content: "";
}

.cast-card img {
  width: 104px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 32%;
}

.cast-card div {
  min-width: 0;
  align-self: center;
}

.cast-card h3 {
  font-size: 1.08rem;
}

.cast-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 48px;
  align-items: center;
}

.rich-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section.book-intro-section {
  isolation: isolate;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4.5vw, 58px);
  border: 1px solid #ddccec;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 100% 8%, rgba(177, 224, 227, .5), transparent 58%),
    radial-gradient(ellipse at 70% 100%, rgba(222, 186, 236, .44), transparent 55%),
    radial-gradient(ellipse at 0 0, rgba(252, 232, 177, .4), transparent 52%),
    #fcf9ff;
  box-shadow: 0 12px 32px rgba(82, 53, 112, .055);
}

.section.book-intro-section::before,
.section.book-intro-section::after {
  position: absolute;
  z-index: -1;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: #d7ad50;
  opacity: .55;
  transform: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  content: "";
  pointer-events: none;
}
.section.book-intro-section::before { inset: 22px 8% auto auto; }
.section.book-intro-section::after { inset: auto auto 24px 30px; width: 18px; height: 18px; background: #84c7cc; }
.intro-book-copy { min-width: 0; }
.intro-book-copy .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid #b8dede;
  border-radius: 999px;
  background: rgba(225, 244, 240, .8);
  color: #237a80;
  letter-spacing: .07em;
}
.intro-book-copy h2 { color: #482c69; }
.intro-book-copy .rich-text p { color: #63516f; line-height: 1.8; }
.book-intro-section .intro-book-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: auto;
  overflow: visible;
  padding: 12px;
  border: 0;
  background: transparent;
}
.intro-book-visual::before {
  position: absolute;
  inset: 12% 4% 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(183, 148, 221, .3), rgba(132, 213, 219, .14) 60%, transparent 72%);
  content: "";
}
.book-intro-section .intro-book-visual img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  filter: drop-shadow(0 14px 17px rgba(76, 48, 107, .15));
}
.book-intro-section.without-image { grid-template-columns: minmax(0, 1fr); }
.book-intro-section.without-image .intro-book-copy { max-width: 760px; margin-inline: auto; }
@media (max-width: 800px) {
  .section.book-intro-section { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .book-intro-section .intro-book-visual { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 620px) {
  .section.book-intro-section { padding: 28px 22px; border-radius: 20px; }
  .intro-book-copy .rich-text p { font-size: 1rem; }
  .book-intro-section .intro-book-visual { padding: 0; }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.with-actions {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.section-heading.with-actions > div:first-child {
  max-width: 760px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.trust-grid,
.story-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.trust-card,
.story-card,
.quote-card,
.order-form,
.faq-list details,
.notice,
.legal-content {
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(39, 31, 61, .08);
}

.trust-section {
  padding-bottom: 56px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
}

.trust-card::after,
.quote-card::after,
.story-card::after {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  content: "";
}

.trust-card p,
.quote-card p,
.story-card p,
.faq-list p {
  color: var(--muted);
}

.trust-card p,
.quote-card p {
  margin: 0;
}

.trust-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 13%, var(--surface));
  color: var(--secondary);
}

.trust-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon.small-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.trust-icon.small-icon svg {
  width: 19px;
  height: 19px;
}

.reader-shell {
  margin-inline: -6px;
  overflow: hidden;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18)),
    repeating-linear-gradient(90deg, rgba(95, 75, 182, .055) 0 2px, transparent 2px 32px);
}

.reader-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 460px);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 6px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.reader-track .story-card {
  scroll-snap-align: start;
}

.reader-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.reader-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

.reader-controls button:disabled {
  opacity: .38;
  cursor: default;
}

.reader-controls svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.story-card div {
  padding: 22px;
}

.story-card span,
.tagline {
  color: var(--secondary);
  font-weight: 800;
}


.section.tinted.packages-section {
  padding-block: 80px;
  background: #f6f1fa;
  border-block: 1px solid #e3d9ed;
}
.packages-section .section-heading {
  max-width: 790px;
  margin: 0 auto 44px;
  text-align: center;
}
.packages-section .section-heading h2 { color: #402953; }
.packages-section .section-heading > p:not(.eyebrow) { color: #63556e; white-space: pre-line; }
.packages-section .eyebrow { color: #72528c; letter-spacing: .14em; }
.packages-crown { display: inline-block; width: 54px; height: 54px; margin-bottom: 10px; color: #a97d34; }
.packages-crown svg { width: 100%; height: 100%; }
.product-list { display: grid; gap: 32px; }
.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 22px;
  background: var(--product-background);
  color: var(--product-ink);
  box-shadow: 0 8px 26px rgba(45, 32, 57, .045);
}
.product-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  padding: 36px;
  background: var(--product-media);
}
.product-media-main { display: grid; place-items: center; min-height: 250px; }
.product-media-main > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 530px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 10px 20px -8px rgba(37, 30, 42, .24);
}
.product-image-placeholder { display: grid; place-items: center; gap: 14px; color: var(--product-accent); font-size: .88rem; }
.product-image-placeholder svg { width: 80px; height: 80px; opacity: .55; }
.product-image-placeholder[hidden], .product-media-main > img[hidden], .product-gallery-thumbnails[hidden] { display: none; }
.product-gallery-thumbnails { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.product-gallery-thumbnails button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 62px;
  height: 72px;
  padding: 5px;
  border: 1px solid var(--product-border);
  border-radius: 7px;
  background: var(--product-background);
  cursor: pointer;
}
.product-gallery-thumbnails button[aria-pressed="true"] { border: 2px solid var(--product-accent); }
.product-gallery-thumbnails button:focus-visible, .product-order-button:focus-visible { outline: 3px solid var(--product-accent); outline-offset: 4px; }
.product-gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.product-information { display: flex; flex-direction: column; align-self: center; gap: 20px; min-width: 0; padding: 42px; overflow-wrap: anywhere; }
.product-information h3 { margin: 0; color: var(--product-ink); font-size: clamp(1.6rem, 2.25vw, 2.3rem); line-height: 1.22; }
.product-information p { margin: 0; }
.product-distinction { color: var(--product-accent); font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.product-lead { color: var(--product-accent); font-size: 1.08rem; font-weight: 750; line-height: 1.6; }
.product-description { line-height: 1.8; white-space: pre-line; }
.product-highlights { display: grid; gap: 12px; margin: 0; padding: 18px 0; border-block: 1px solid var(--product-border); list-style: none; }
.product-highlights li { display: flex; align-items: baseline; gap: 12px; font-weight: 750; line-height: 1.5; }
.product-highlights svg { align-self: flex-start; flex: 0 0 24px; width: 24px; height: 24px; padding: 3px; margin-top: 1px; border-radius: 50%; color: var(--product-accent); background: var(--product-media); }
.product-highlights span { min-width: 0; }
.product-detail-group h4 { margin: 0 0 10px; color: var(--product-ink); font-size: 1rem; }
.product-detail-group ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; line-height: 1.65; }
.product-detail-group li::marker { color: var(--product-accent); }
.product-contents { padding: 18px 20px; border: 1px solid var(--product-border); border-radius: 12px; background: var(--product-media); }
.product-buy { display: grid; gap: 14px; padding-top: 4px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.product-price strong { color: var(--product-accent); font-size: 2rem; line-height: 1.2; }
.product-price del { color: var(--product-ink); opacity: .68; font-size: .9rem; }
.product-showcase .product-order-button { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 15px 20px; border-radius: 10px; border-color: var(--product-accent); background: var(--product-accent); color: #fff; box-shadow: none; text-align: left; }
.product-showcase .product-order-button:hover { filter: brightness(.93); transform: none; }
.product-order-button svg { flex: 0 0 22px; width: 22px; height: 22px; }
.product-purchase-note { color: var(--product-ink); font-size: .88rem; line-height: 1.65; white-space: pre-line; }
.product-availability { color: var(--product-accent); font-weight: 750; }
@media (max-width: 1100px) { .product-information { padding: 30px; } .product-media { padding: 28px; } }
@media (max-width: 800px) {
  .product-showcase { grid-template-columns: minmax(0, 1fr); }
  .product-media { padding: 28px; }
  .product-media-main > img { max-height: 430px; }
  .product-media-main { min-height: 200px; }
}
@media (max-width: 620px) {
  .section.tinted.packages-section { padding-block: 52px; }
  .packages-section .section-heading { margin-bottom: 30px; }
  .product-list { gap: 24px; }
  .product-information { padding: 26px 22px; gap: 18px; }
  .product-media { padding: 26px; }
  .product-showcase { border-radius: 16px; }
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-card {
  position: relative;
  display: grid;
  gap: 22px;
  align-content: space-between;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
}

.quote-card::before {
  position: absolute;
  top: 18px;
  right: 18px;
  color: color-mix(in srgb, var(--accent) 45%, transparent);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  content: "”";
  pointer-events: none;
}

.quote-card > p {
  position: relative;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 750;
}

.quote-card footer {
  display: grid;
  gap: 3px;
}

.quote-card span {
  color: var(--muted);
  font-size: .92rem;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.order-side {
  display: grid;
  gap: 18px;
}

.order-assurance {
  display: grid;
  gap: 10px;
}

.order-assurance div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--background));
}

.order-assurance p {
  margin: 0;
  font-weight: 850;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.order-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: .92rem;
}

.order-form small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.order-form .wide {
  grid-column: 1 / -1;
}

.order-price-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 7%, var(--surface));
}

.order-price-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.order-price-summary span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.order-price-summary strong {
  text-align: right;
  font-weight: 900;
}

.order-price-summary .total {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
}

.order-price-summary .total strong {
  color: var(--primary);
  font-size: 1.25rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--secondary) 25%, transparent);
  border-color: var(--secondary);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.notice {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  padding: 14px 16px;
  font-weight: 800;
}

.notice.success {
  border-color: color-mix(in srgb, var(--secondary) 40%, transparent);
  color: color-mix(in srgb, var(--secondary) 70%, #102b2c);
}

.notice.error {
  border-color: #be3b3b;
  color: #912929;
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  padding: 38px max(20px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(95, 75, 182, .28), transparent 42%),
    #1e1b2f;
  color: white;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand p,
.footer section p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .72);
}

.footer-brand .footer-cta {
  display: inline-block;
  margin-top: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer h2 {
  margin: 0 0 10px;
  color: #f8d88b;
  font-size: .82rem;
  text-transform: uppercase;
}

.footer section {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer a {
  color: rgba(255, 255, 255, .84);
  font-weight: 750;
}

.footer a:hover {
  color: white;
}

.footer-cta {
  justify-self: start;
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #1f1b16 !important;
  font-weight: 900 !important;
}

.legal-page {
  min-height: 70vh;
}

.legal-content {
  padding: 42px;
}

.legal-content h1 {
  color: var(--ink);
  font-size: 2.6rem;
  margin-bottom: 22px;
}

@media (min-width: 1540px) {
  .story-map-wrap {
    position: fixed;
    top: 104px;
    left: 16px;
    z-index: 15;
    width: 150px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .story-map {
    display: grid;
    gap: 8px;
    overflow: visible;
  }

  .story-map-title {
    padding-left: 2px;
  }

  .story-map-item {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 1120px) {
  .header-promise {
    display: none;
  }
}

@media (max-width: 960px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 44px;
  }

  .nav {
    display: none;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 8px;
  }

  .topbar.nav-open .nav {
    display: grid;
  }

  .nav a {
    padding: 10px 11px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 6%, transparent);
  }

  .nav .nav-cta {
    padding: 11px 16px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-book {
    min-height: 0;
    max-width: 420px;
  }

  .hero-character-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -6px auto -76px;
  }

  .storybook-ribbon {
    grid-template-columns: 1fr;
  }

  .storybook-ribbon .ribbon-image {
    max-width: 620px;
    margin: 0 auto;
  }

  .cast-showcase {
    grid-template-columns: 1fr;
  }

  .cast-group {
    position: static;
    max-width: 520px;
    margin: 0 auto;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .split,
  .order-section,
  .trust-grid,
  .story-grid,
    .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.with-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 76px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .story-map-wrap {
    top: 68px;
    padding: 8px 16px;
  }

  .story-map-title {
    display: none;
  }

  .brand small {
    display: none;
  }

  .nav {
    gap: 7px;
  }

  .nav a {
    font-size: .9rem;
  }

  .mobile-order-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #1f1b16;
    box-shadow: 0 16px 34px rgba(30, 27, 47, .24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 20px));
    transition: opacity .2s ease, transform .2s ease;
  }

  .mobile-order-bar.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-order-bar span {
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-order-bar strong {
    overflow-wrap: anywhere;
    text-align: right;
    line-height: 1.15;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner,
  .section,
  .notice {
    width: calc(100% - 32px);
  }

  .hero-inner {
    padding: 48px 0 64px;
  }

  .hero-copy,
  .hero-lead {
    width: 100%;
  }

  .hero-promise-strip span {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-book {
    padding: 14px;
  }

  .book-cover {
    width: min(100%, 240px);
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .section {
    padding: 56px 0;
  }

  .section[id] {
    scroll-margin-top: 132px;
  }

  .paper-section {
    padding: 28px 20px;
  }

  .storybook-ribbon {
    padding: 20px;
  }

  .hero-character-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: -42px;
  }

  .hero-character {
    padding: 7px;
  }

  .hero-character img {
    aspect-ratio: 16 / 10;
  }

  .ribbon-copy h2 {
    font-size: 1.42rem;
  }

  .ribbon-steps {
    display: grid;
  }

  .cast-grid {
    grid-template-columns: 1fr;
  }

  .cast-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cast-card img {
    width: 88px;
    height: 112px;
  }

  .reader-track {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .reader-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .trust-card,
  .quote-card {
    min-height: 0;
    padding: 20px;
  }

  .illustrated-section::after {
    display: none;
  }

  .order-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .order-form .wide {
    grid-column: auto;
  }

  .order-price-summary div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .order-price-summary strong {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 24px 18px;
  }
}

/* Playful storefront refinements */
.topbar {
  min-height: 86px;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 22%, transparent) 0 44px, transparent 45px),
    radial-gradient(circle at 72% 0, color-mix(in srgb, var(--secondary) 16%, transparent) 0 54px, transparent 55px),
    linear-gradient(90deg, rgba(255, 252, 246, .98), color-mix(in srgb, var(--surface) 92%, var(--accent)) 46%, color-mix(in srgb, var(--surface) 90%, var(--secondary)));
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  box-shadow: 0 16px 44px rgba(36, 27, 58, .09);
}

.topbar::before,
.topbar::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.topbar::before {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent) 0 2px, transparent 3px) 24px 18px / 76px 42px,
    linear-gradient(110deg, transparent 0 34%, color-mix(in srgb, var(--accent) 18%, transparent) 34% 36%, transparent 36% 100%);
  opacity: .48;
}

.topbar::after {
  top: auto;
  height: 8px;
  background:
    linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .62) 0 12px, transparent 12px 24px);
  background-blend-mode: screen;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand {
  min-width: 270px;
  padding: 6px 8px 6px 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18) 0 7px, transparent 7px),
    linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--secondary) 62%, var(--primary)));
  box-shadow:
    0 12px 20px rgba(95, 75, 182, .24),
    inset -8px 0 0 rgba(0, 0, 0, .12);
  transform: rotate(-2deg);
}

.brand-mark::before {
  position: absolute;
  inset: 8px auto 8px 9px;
  width: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .62);
  content: "";
}

.brand-mark::after {
  right: 10px;
  width: 3px;
  background: rgba(255, 255, 255, .28);
}

.brand strong {
  font-size: 1.12rem;
}

.brand small {
  max-width: 190px;
  line-height: 1.25;
}

.header-promise {
  min-width: 240px;
  max-width: 280px;
  padding: 9px 12px;
  border: 1px dashed color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 26px rgba(39, 31, 61, .07);
}

.promise-mark {
  position: relative;
  width: 12px;
  height: 12px;
  flex-basis: 12px;
  background: var(--accent);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 0 10px rgba(255, 255, 255, .55);
}

.nav {
  gap: 6px;
}

.nav a {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .42);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--secondary) 35%, transparent);
  background: rgba(255, 255, 255, .82);
  outline: 0;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 76%, var(--secondary)));
  box-shadow: 0 12px 24px rgba(95, 75, 182, .2);
}

.nav a.nav-cta {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background:
    linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #1d1730)) !important;
  color: white !important;
}

.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 86%, #1d1730), var(--secondary)) !important;
  color: white !important;
}

.nav-cta::after {
  position: absolute;
  inset: auto 10px 6px;
  height: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 86%, white);
  content: "";
}

.story-map-wrap {
  top: 86px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--background) 96%, white), color-mix(in srgb, var(--surface) 88%, var(--accent)));
}

.story-map-item {
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.story-map-item:hover,
.story-map-item.is-active {
  transform: translateY(-1px);
}

.hero {
  min-height: 760px;
  background-position: center top;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 24%, rgba(248, 216, 139, .18) 0 80px, transparent 82px),
    radial-gradient(circle at 82% 18%, rgba(54, 194, 201, .16) 0 100px, transparent 102px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 8px, transparent 8px 30px);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.12;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .58);
}

.hero-promise-strip span span {
  padding: 0;
  margin-right: 6px;
  min-height: 0;
  border: 0;
  background: transparent;
}

.hero-lead,
.hero .eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .58);
}

.hero-stage {
  position: relative;
  display: grid;
  gap: 14px;
  align-self: stretch;
  min-height: 470px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, .96), rgba(255, 246, 232, .9)),
    repeating-linear-gradient(90deg, rgba(95, 75, 182, .04) 0 2px, transparent 2px 28px);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(13, 11, 24, .34);
  transform: rotate(1.4deg);
}

.hero-stage::before {
  position: absolute;
  inset: 12px;
  border: 2px dashed color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 8px;
  content: "";
  opacity: .5;
  pointer-events: none;
}

.hero-stage::after {
  position: absolute;
  top: -15px;
  right: 24px;
  width: 72px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 78%, white);
  box-shadow: 0 8px 20px rgba(39, 31, 61, .13);
  content: "";
  opacity: .82;
  transform: rotate(-6deg);
}

.hero-stage-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  min-height: 300px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(248, 216, 139, .42), transparent 46%),
    color-mix(in srgb, var(--secondary) 10%, white);
  box-shadow: inset 0 -30px 60px rgba(95, 75, 182, .08);
}

.hero-stage-art img {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  object-position: center 30%;
  transition: transform .34s ease, opacity .24s ease;
}

.hero-stage.is-swapping .hero-stage-art img {
  opacity: .34;
  transform: scale(.96) rotate(-1deg);
}

.hero-stage-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 2px 4px 4px;
}

.hero-stage-copy span {
  color: var(--secondary);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-stage-copy strong {
  color: var(--primary);
  font-size: 1.38rem;
  line-height: 1.1;
}

.hero-stage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.45;
}

.hero-character-strip {
  width: min(1000px, 100%);
  gap: 14px;
}

.hero-character {
  position: relative;
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.hero-character::after {
  position: absolute;
  inset: auto 18px -7px;
  height: 12px;
  border-radius: 50%;
  background: rgba(21, 18, 34, .18);
  filter: blur(8px);
  content: "";
  pointer-events: none;
}

.hero-character:hover,
.hero-character:focus-visible,
.hero-character.is-active {
  transform: translateY(-8px) rotate(-1deg);
  border-color: color-mix(in srgb, var(--accent) 80%, white);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 50px rgba(21, 18, 34, .22);
  outline: 0;
}

.hero-character.is-active span {
  color: var(--secondary);
}

.hero-character small,
.package-choice small {
  display: block;
}

.illustrated-section::after {
  right: 0;
  bottom: 22px;
  width: 156px;
  height: 156px;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 52%, transparent) 0 11px, transparent 12px),
    radial-gradient(circle at 70% 64%, color-mix(in srgb, var(--secondary) 42%, transparent) 0 14px, transparent 15px),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 13%, transparent), color-mix(in srgb, var(--accent) 18%, transparent));
  box-shadow: none;
  opacity: .42;
  transform: rotate(8deg);
}

.storybook-ribbon {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  padding: 28px;
}

.ribbon-cameos {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 220px;
  padding: 18px 12px 8px;
}

.ribbon-cameos span {
  position: relative;
  display: block;
  width: 132px;
  aspect-ratio: 4 / 5;
  flex: 0 0 132px;
  margin-left: -18px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, .9);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 30px rgba(39, 31, 61, .12);
  transform: rotate(-5deg);
}

.ribbon-cameos span:first-child {
  margin-left: 0;
}

.ribbon-cameos span:nth-child(2) {
  z-index: 1;
  transform: translateY(-14px) rotate(4deg);
}

.ribbon-cameos span:nth-child(3) {
  transform: rotate(-1deg);
}

.ribbon-cameos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.ribbon-steps a {
  transition: transform .16s ease, background .16s ease;
}

.ribbon-steps a:hover,
.ribbon-steps a:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  outline: 0;
}

.order-companion-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), color-mix(in srgb, var(--accent) 14%, var(--surface))),
    repeating-linear-gradient(90deg, rgba(95, 75, 182, .05) 0 2px, transparent 2px 28px);
  box-shadow: 0 16px 36px rgba(39, 31, 61, .08);
}

.order-companion-card img {
  width: 128px;
  aspect-ratio: 4 / 5;
  border: 6px solid white;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 30%;
  box-shadow: 0 12px 24px rgba(39, 31, 61, .12);
  transform: rotate(-3deg);
}

.order-companion-card span {
  color: var(--secondary);
  font-weight: 950;
  text-transform: uppercase;
  font-size: .78rem;
}

.order-companion-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.playful-order-form {
  position: relative;
  gap: 18px;
  padding: 24px;
  border-color: color-mix(in srgb, var(--secondary) 30%, transparent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 252, 245, .9)),
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 20%, transparent) 0 80px, transparent 82px);
}

.playful-order-form::before {
  position: absolute;
  top: 14px;
  right: 18px;
  left: 18px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  content: "";
}

.order-form-intro {
  display: grid;
  gap: 4px;
  padding: 16px 18px 0;
}

.order-form-intro span {
  color: var(--secondary);
  font-size: .8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.order-form-intro strong {
  font-size: 1.08rem;
}

.order-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.order-stepper span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, var(--background));
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
  text-align: center;
}

.order-stepper b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: .8rem;
}

.playful-order-form[data-active-step="1"] .order-stepper span:nth-child(1),
.playful-order-form[data-active-step="2"] .order-stepper span:nth-child(2),
.playful-order-form[data-active-step="3"] .order-stepper span:nth-child(3),
.playful-order-form[data-active-step="4"] .order-stepper span:nth-child(4) {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--ink);
}

.form-chapter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .72)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(54, 194, 201, .045) 30px 32px);
}

.form-chapter:focus-within {
  border-color: color-mix(in srgb, var(--secondary) 58%, transparent);
  box-shadow: 0 16px 32px rgba(54, 194, 201, .1);
}

.form-chapter legend {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  color: var(--ink);
  font-weight: 950;
}

.form-chapter legend span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--secondary);
  color: white;
  font-size: .82rem;
}

.package-select {
  grid-column: 1 / -1;
}

.package-choice-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.package-choice {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.package-choice:hover,
.package-choice:focus-visible,
.package-choice.is-selected {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 78%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  box-shadow: 0 16px 30px rgba(39, 31, 61, .1);
  outline: 0;
}

.package-choice.is-selected::after {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--secondary);
  content: "";
}

.package-choice.is-selected::before {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  content: "";
  transform: rotate(-45deg);
}

.package-choice img {
  grid-row: 1 / span 3;
  width: 72px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 38%;
}

.package-choice span {
  padding-right: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.package-choice small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.25;
}

.package-choice strong {
  color: var(--primary);
  font-size: 1.02rem;
}

.playful-order-form input,
.playful-order-form select,
.playful-order-form textarea {
  min-height: 48px;
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  background:
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 4%, #fff));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.playful-order-form textarea {
  min-height: 104px;
}

.playful-order-form input::placeholder,
.playful-order-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, white);
}

.order-price-summary {
  grid-column: 1 / -1;
  padding: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--secondary) 10%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
}

.order-submit {
  min-height: 54px;
  box-shadow: 0 16px 30px rgba(233, 175, 69, .22);
}

.payment-methods {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background: #fff;
}

.payment-methods legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.order-form .payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.playful-order-form .payment-method-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
  box-shadow: none;
}

.payment-test-mode {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 20%, #fff);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
}

.barion-payment-banner {
  display: block;
  width: 100%;
  max-width: 1133px;
  height: auto;
}

.order-consent {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.order-consent:focus-within {
  border-color: color-mix(in srgb, var(--secondary) 58%, transparent);
  box-shadow: 0 16px 32px rgba(54, 194, 201, .1);
}

.order-consent.is-accepted {
  border-color: color-mix(in srgb, var(--secondary) 48%, transparent);
  background: color-mix(in srgb, var(--secondary) 8%, #fff);
}

.order-consent.has-error {
  border-color: #c2413b;
  background: #fff6f5;
  box-shadow: 0 0 0 3px rgba(194, 65, 59, .12);
}

.order-form .order-consent-option {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
}

.order-consent-option a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.playful-order-form .order-consent-option input {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--primary) 42%, transparent);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.playful-order-form .order-consent-option input::before {
  width: 12px;
  height: 7px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  content: "";
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .15s ease;
}

.playful-order-form .order-consent-option input:checked {
  border-color: var(--secondary);
  background: var(--secondary);
}

.playful-order-form .order-consent-option input:checked::before {
  transform: translateY(-2px) rotate(-45deg) scale(1);
}

.playful-order-form .order-consent-option input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 35%, transparent);
  outline-offset: 2px;
}

.order-consent.has-error .order-consent-option input {
  border-color: #c2413b;
}

.order-consent-error {
  margin: 0 0 0 38px;
  color: #b3261e;
  font-size: .86rem;
  font-weight: 800;
}

/* Address autocomplete: progressive enhancement added by address-autocomplete.js. */
.address-field {
  position: relative;
  display: block;
  min-width: 0;
}

.address-field > input {
  padding-right: 40px;
}

.address-field.is-loading::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid color-mix(in srgb, var(--secondary) 26%, transparent);
  border-top-color: var(--secondary);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: address-lookup-spin .7s linear infinite;
}

@keyframes address-lookup-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .address-field.is-loading::after {
    animation-duration: 1.8s;
  }
}

.address-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: min(296px, 45vh);
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(39, 31, 61, .14);
  list-style: none;
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.address-suggestions li:hover,
.address-suggestions li.is-active {
  background: color-mix(in srgb, var(--accent) 16%, #fff);
}

.address-suggestions li small {
  flex: 0 0 auto;
  white-space: nowrap;
}

.consent-banner[hidden], .consent-banner [hidden] { display: none; }
.consent-banner {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 64px;
  left: 16px;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--primary, #5f4bb6);
  border-radius: 8px;
  background: #fff;
  color: #241f35;
  box-shadow: 0 12px 40px rgba(36, 31, 53, .25);
  font-size: .9rem;
}
.consent-banner h2 { margin-top: 0; font-size: 1.2rem; }
.consent-banner p { line-height: 1.6; }
.consent-banner a { color: #49358f; text-decoration: underline; }
.consent-banner label { display: flex; align-items: start; gap: 10px; margin: 16px 0; }
.consent-banner input { width: 20px; height: 20px; flex: 0 0 20px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent-actions .button { flex: 1 1 180px; }
.consent-banner .button.ghost { border: 1px solid #5f4bb6; background: #fff; color: #49358f !important; }
.consent-reopen {
  position: fixed;
  z-index: 90;
  left: 12px;
  bottom: 12px;
  padding: 10px 14px;
  border: 1px solid #5f4bb6;
  border-radius: 8px;
  background: #fff;
  color: #49358f;
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .topbar {
    min-height: 78px;
  }

  .story-map-wrap {
    top: 78px;
  }
}

@media (max-width: 1380px) {
  .header-promise {
    display: none;
  }
}

@media (max-width: 960px) {
  .topbar {
    overflow: visible;
  }

  .nav {
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--primary) 13%, transparent);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 34px rgba(39, 31, 61, .11);
  }

  .hero {
    min-height: 0;
  }

  .hero-stage {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    max-width: 620px;
    margin: 0 auto;
    transform: rotate(.6deg);
  }

  .hero-stage-art {
    min-height: 230px;
  }

  .hero-character-strip {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    margin: -8px auto -54px;
    overflow-x: auto;
    padding: 0 2px 10px;
    scrollbar-width: thin;
  }

  .storybook-ribbon {
    grid-template-columns: 1fr;
  }

  .ribbon-cameos {
    min-height: 172px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .ribbon-cameos span {
    width: 112px;
    flex-basis: 112px;
  }

  .order-companion-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .order-companion-card img {
    width: 104px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 88px;
  }

  .topbar {
    min-height: 70px;
    padding: 10px 14px 14px;
  }

  .brand {
    padding: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .story-map-wrap {
    top: 70px;
  }

  .hero-inner {
    padding-top: 44px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    padding: 14px;
    transform: none;
  }

  .hero-stage-art {
    min-height: 260px;
  }

  .hero-character-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    margin-bottom: -34px;
  }

  .hero-character:hover,
  .hero-character:focus-visible,
  .hero-character.is-active {
    transform: translateY(-4px);
  }

  .storybook-ribbon {
    padding: 18px;
  }

  .ribbon-cameos {
    min-height: 150px;
    padding-left: 0;
  }

  .ribbon-cameos span {
    width: 94px;
    flex-basis: 94px;
    margin-left: -10px;
  }

  .order-companion-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .order-companion-card img {
    width: 82px;
  }

  .order-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-stepper span {
    justify-content: flex-start;
  }

  .form-chapter {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .package-select,
  .package-choice-grid,
  .order-price-summary {
    grid-column: auto;
  }

  .package-choice-grid {
    grid-template-columns: 1fr;
  }

  .package-choice {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 100px;
  }

  .package-choice img {
    width: 64px;
    height: 82px;
  }

  .order-consent {
    padding: 14px;
  }

  .order-form .order-consent-option {
    gap: 10px;
    font-size: .92rem;
  }

  .order-consent-error {
    margin-left: 36px;
  }
}

.payment-result-page {
  min-height: 100vh;
}

.payment-result-shell {
  width: min(920px, calc(100% - 32px));
  margin: 128px auto 80px;
}

.payment-result-panel {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 80px rgba(36, 34, 54, .12);
}

.payment-result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--secondary) 16%, white);
  color: var(--secondary);
  margin-bottom: 20px;
}

.payment-result-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-result-panel.failed .payment-result-icon,
.payment-result-panel.canceled .payment-result-icon,
.payment-result-panel.expired .payment-result-icon,
.payment-result-panel.unknown .payment-result-icon {
  background: #fff0ef;
  color: #be3b3b;
}

.payment-result-panel.processing .payment-result-icon,
.payment-result-panel.started .payment-result-icon,
.payment-result-panel.pending .payment-result-icon {
  background: #fff5df;
  color: #a66f00;
}

.payment-result-panel h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.result-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.payment-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.payment-result-details div {
  background: color-mix(in srgb, var(--primary) 6%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 8px;
  padding: 16px;
}

.payment-result-details dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-result-details dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.payment-result-warning {
  background: #fff5df;
  border: 1px solid #f0d18c;
  border-radius: 8px;
  color: #604000;
  padding: 14px 16px;
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.payment-result-actions form {
  margin: 0;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 900;
  color: #58420a;
  background: #fff5df;
}

.payment-status.succeeded,
.payment-status.refunded,
.payment-status.partially-refunded {
  color: #0f5f50;
  background: #e5f7f0;
}

.payment-status.failed,
.payment-status.canceled,
.payment-status.expired,
.payment-status.unknown {
  color: #9d2d2d;
  background: #fff0ef;
}

@media (max-width: 680px) {
  .payment-result-shell {
    margin-top: 96px;
  }

  .payment-result-details {
    grid-template-columns: 1fr;
  }

  .payment-result-actions,
  .payment-result-actions .button,
  .payment-result-actions form {
    width: 100%;
  }
}

.withdrawal-reference { margin: 24px 0; padding: 20px 24px; border-radius: 8px; background: #f1edfb; border-left: 4px solid #6952b4; }
.withdrawal-reference span { display: block; font-size: .85rem; color: #706589; margin-bottom: 6px; }
.withdrawal-reference strong { display: block; font-size: 1.2rem; color: #4f46a5; overflow-wrap: anywhere; }
.withdrawal-reference p { margin: 10px 0 0; font-size: .92rem; }
.withdrawal-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; border: 1px solid #ddd7ee; border-radius: 6px; }
.withdrawal-form textarea { width: 100%; resize: vertical; min-height: 130px; }

/* Pickup-point-only delivery (FOXPOST) */
.pickup-only-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
}

.pickup-only-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pickup-only-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid color-mix(in srgb, var(--accent) 75%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.pickup-only-callout strong {
  display: block;
  font-size: 1.05rem;
}

.pickup-only-callout p {
  margin: 6px 0 0;
}

.pickup-only-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.shipping-method-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.order-form .shipping-method-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 2px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.order-form .shipping-method-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, #fff);
}

.order-form .shipping-method-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--primary);
}

.shipping-method-option span {
  display: grid;
  gap: 3px;
}

.order-form .shipping-method-option.is-disabled {
  cursor: not-allowed;
  opacity: .62;
  background: color-mix(in srgb, var(--muted) 8%, #fff);
}

.shipping-method-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-style: normal;
  font-weight: 850;
}

.pickup-point {
  display: grid;
  gap: 10px;
}

.pickup-point-selected {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  background: color-mix(in srgb, var(--secondary) 8%, #fff);
}

.pickup-point-selected span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.pickup-point-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.pickup-point-open {
  justify-self: start;
}

.pickup-point-error {
  margin: 0;
  color: #912929;
  font-weight: 800;
}

.pickup-chapter.has-error {
  border-color: #be3b3b;
}

.pickup-point-map iframe {
  display: block;
  width: 100%;
  height: min(640px, 78vh);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 620px) {
  .pickup-point-open {
    justify-self: stretch;
  }

  .pickup-point-map iframe {
    height: 80vh;
  }
}

.pickup-point [hidden] {
  display: none;
}

/* Quantity stepper (1–20 copies) */
.quantity-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "copy stepper" "books books";
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px;
  border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}

.quantity-picker-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
}

.order-form .quantity-picker-copy label {
  font-size: 1rem;
  font-weight: 900;
}

.quantity-hint {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.quantity-stepper {
  grid-area: stepper;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(54, 40, 120, .12);
}

.quantity-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, background-color .12s ease;
}

.quantity-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 82%, #000);
}

.quantity-button:active:not(:disabled) {
  transform: scale(.92);
}

.quantity-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 45%, transparent);
  outline-offset: 2px;
}

.quantity-button:disabled {
  background: color-mix(in srgb, var(--muted) 30%, #fff);
  cursor: not-allowed;
}

.order-form .quantity-stepper input {
  width: 3.2ch;
  min-width: 52px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.quantity-stepper input:focus {
  outline: none;
}

.quantity-stepper:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary) 35%, transparent), 0 6px 16px rgba(54, 40, 120, .12);
}

.quantity-books {
  grid-area: books;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 30px;
}

.quantity-book {
  width: 14px;
  height: 26px;
  border-radius: 2px 4px 4px 2px;
  background: var(--primary);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .35);
}

.quantity-book:nth-child(2n) { height: 30px; background: var(--secondary); }
.quantity-book:nth-child(3n) { height: 24px; background: var(--accent); }

.quantity-more {
  margin-left: 4px;
  font-weight: 900;
  color: var(--primary);
}

.quantity-books.is-bumping .quantity-book:last-of-type {
  animation: quantity-book-pop .28s ease-out;
}

@keyframes quantity-book-pop {
  from { transform: translateY(-8px) scale(1.15); }
  to { transform: none; }
}

.order-price-summary small[data-quantity-label] {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .quantity-button { transition: none; }
  .quantity-books.is-bumping .quantity-book:last-of-type { animation: none; }
}

@media (max-width: 620px) {
  .quantity-picker {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stepper" "books";
    justify-items: stretch;
  }

  .quantity-stepper {
    justify-content: space-between;
  }

  .quantity-button {
    width: 52px;
    height: 52px;
  }
}

/* Nearby pickup points from the billing postcode */
.address-chapter-note {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--muted);
  font-size: .9rem;
}

.address-chapter-note strong {
  color: var(--ink);
}

.pickup-nearby {
  display: grid;
  gap: 8px;
}

.pickup-nearby-title {
  margin: 0;
  font-weight: 900;
}

.pickup-nearby-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pickup-nearby-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.pickup-nearby-option:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.pickup-nearby-option:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 40%, transparent);
  outline-offset: 2px;
}

.pickup-nearby-option[aria-pressed="true"] {
  border-color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 9%, #fff);
}

.pickup-nearby-option strong {
  font-size: .95rem;
}

.pickup-nearby-option small {
  grid-column: 1;
  color: var(--muted);
  font-weight: 700;
}

.pickup-nearby-distance {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .pickup-nearby-list li:nth-child(n + 5) {
    display: none;
  }
}

/* Ordering paused until a carrier is activated */
.ordering-paused {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.ordering-paused strong {
  font-size: 1.1rem;
}

.ordering-paused p {
  margin: 0;
}

.order-submit:disabled {
  cursor: not-allowed;
  opacity: .65;
}

/* Compact checkout on phones */
@media (max-width: 620px) {
  .order-form {
    gap: 12px;
    padding: 14px;
  }

  .form-chapter {
    gap: 12px;
    padding: 12px;
  }

  .order-price-summary {
    gap: 6px;
    padding: 12px;
  }

  .order-price-summary div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
  }

  .order-price-summary strong {
    text-align: right;
    white-space: nowrap;
  }

  .quantity-picker {
    gap: 10px;
    padding: 12px;
  }

  .pickup-only-note,
  .address-chapter-note {
    font-size: .88rem;
  }

  .order-form .shipping-method-option {
    padding: 10px 12px;
  }

  .shipping-method-option small {
    font-size: .76rem;
  }

  .pickup-nearby-option {
    min-height: 0;
    padding: 10px 12px;
  }
}
