/* Design V2 · inner pages and shared components */

.small { font-size: 0.95rem; }
.muted { color: var(--muted); }
.spec { font: 500 14px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); margin: 0; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.needs-block { display: grid; place-items: center; min-height: 200px; padding: 24px; text-align: center; border-radius: var(--r); border: 1.5px dashed #E39A85; background: rgba(255, 246, 223, 0.06); color: #FFF6DF; font: 500 14px var(--mono); }

/* Current page in the nav */
.nav a[aria-current="page"] { color: var(--text); position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--lilac)); box-shadow: 0 0 12px var(--violet); }
.mnav__panel a[aria-current="page"] { color: var(--lilac); background: rgba(162, 131, 242, 0.12); }
.pill[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lilac); }

/* Breadcrumbs */
.crumbs { position: relative; z-index: 3; padding-top: 18px; font-size: 0.95rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(205, 187, 255, 0.4); }
.crumbs a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Page hero ---------- */
.phero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.phero__bg { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(125, 92, 224, 0.35), rgba(125, 92, 224, 0.08) 60%, transparent); filter: blur(10px); animation: breathe 9s var(--ease) infinite alternate; }
.phero .wrap { position: relative; z-index: 2; }
.phero__title { font-size: clamp(3.75rem, 2rem + 8vw, 9rem); line-height: 0.88; margin: 6px 0 20px; max-width: 14ch; }
.phero__lede { font-size: 1.125rem; color: var(--muted); max-width: 34em; margin-bottom: 24px; }
.phero--small .phero__title { font-size: clamp(3.25rem, 2rem + 5vw, 6.5rem); }
.phero--notice { padding-block: clamp(56px, 8vw, 128px); }
.phero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .phero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.tick-orb { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 24px; color: var(--ink); background: radial-gradient(circle at 35% 30%, var(--lilac), var(--violet) 60%, var(--violet-2)); box-shadow: 0 0 0 8px rgba(162, 131, 242, 0.15), 0 0 50px rgba(162, 131, 242, 0.6); animation: breathe 4s var(--ease) infinite alternate; }
.tick-orb svg { width: 34px; height: 34px; }

/* ---------- Forms (dark) ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; align-content: start; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field__hint { color: var(--muted); font-weight: 500; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 0;
  font: 500 1rem/1.4 var(--body); color: var(--text); background: rgba(242, 238, 248, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 200ms, background-color 200ms;
}
.input::placeholder { color: #8E8AA0; }
.input:hover { box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.45); }
.input:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; background: rgba(242, 238, 248, 0.09); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #F0A091; }
textarea.input { min-height: 180px; resize: vertical; }
select.input { appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23CDBBFF' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.input option { background: var(--surface); color: var(--text); }
.field__error { margin: 0; color: #F4AE9F; font-weight: 700; font-size: 0.95rem; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; margin: 4px 0 16px; font-size: 0.95rem; line-height: 1.5; }
.check input { width: 26px; height: 26px; margin: 0; accent-color: var(--violet); cursor: pointer; }
.honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sform__row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .sform__row { grid-template-columns: 1fr 1.4fr; } .sform__row--stack { grid-template-columns: 1fr; } }
.sform .btn--glow { width: 100%; justify-content: center; }
@media (min-width: 640px) { .sform .btn--glow { width: auto; } }
.error-summary { padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; background: rgba(240, 160, 145, 0.1); box-shadow: inset 0 0 0 1.5px #F0A091; }
.error-summary h2 { font: 700 1rem var(--body); margin-bottom: 6px; }
.error-summary ul { list-style: disc; padding-left: 1.2em; }
.error-summary a { color: #F4AE9F; font-weight: 700; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(162, 131, 242, 0.12); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.35); font-size: 0.95rem; }
.turnstile-slot { min-height: 65px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.foot { padding: 64px 0 24px; background: linear-gradient(180deg, transparent, rgba(125, 92, 224, 0.06)); }
.foot__grid { display: grid; gap: 36px; margin-bottom: 36px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__word { font: 400 2.75rem/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 8px; color: var(--text); }
.foot__tag { font-family: var(--script); color: var(--lilac); font-size: 2rem; line-height: 1; margin-bottom: 22px; }
.foot__form { max-width: 26rem; }
.foot__form-h { font-weight: 700; color: var(--text); margin-bottom: 10px; }
.foot__form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.foot__form-row .input { flex: 1 1 180px; }
.foot__form .field__error { margin-top: 10px; }
.foot h2 { margin-bottom: 10px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--text); }
.foot__inner { border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Genre badges ---------- */
.gbadge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; font: 500 14px/1.2 var(--mono); letter-spacing: 0.03em; }
.gbadge--plum { background: rgba(162, 131, 242, 0.18); color: var(--lilac); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.45); }
.gbadge--green { background: rgba(127, 209, 185, 0.12); color: #9EE3CF; box-shadow: inset 0 0 0 1px rgba(127, 209, 185, 0.4); }
.gbadge--ink { background: rgba(242, 238, 248, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.gbadge--coral { background: rgba(222, 138, 117, 0.16); color: #F2B4A4; box-shadow: inset 0 0 0 1px rgba(222, 138, 117, 0.45); }
.gbadge--gold { background: rgba(209, 162, 84, 0.16); color: #EBC787; box-shadow: inset 0 0 0 1px rgba(209, 162, 84, 0.45); }

/* ---------- Book tiles ---------- */
.btiles { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .btiles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; } }
.btiles--one { max-width: 300px; grid-template-columns: 1fr !important; }
.btile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 450ms var(--ease-out-expo), box-shadow 300ms;
}
.btile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), rgba(162, 131, 242, 0.2), transparent 60%); }
.btile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.35), 0 26px 50px -26px rgba(125, 92, 224, 0.8); }
.btile:hover::before { opacity: 1; }
.btile__stage { position: relative; display: grid; place-items: end center; aspect-ratio: 1 / 1; padding: 14% 14% 0; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 100%, rgba(162, 131, 242, 0.42), transparent 70%), linear-gradient(170deg, #262634, #17181F); }
.btile__cover { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: bottom; border-radius: 3px 3px 0 0; box-shadow: 0 -2px 30px -8px rgba(0, 0, 0, 0.7); transition: transform 600ms var(--ease-out-expo); transform-origin: bottom; }
.btile__cover.is-mockup { box-shadow: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); }
.btile:hover .btile__cover { transform: translateY(-6px) scale(1.04); }
.btile__body { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; flex: 1; }
.btile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.btile__no { font: 500 14px var(--mono); color: var(--muted); }
.btile__title { font: 700 1.0625rem/1.3 var(--body); margin: 0; }
.btile__title a { color: var(--text); text-decoration: none; }
.btile__title a:hover { color: var(--lilac); }
.btile .spec { font-size: 14px; letter-spacing: 0.05em; color: var(--muted); }
.btile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: auto; padding-top: 4px; }
@media (max-width: 520px) { .btile__actions .btn { width: 100%; justify-content: center; padding: 0 10px; } .btile__body { padding: 12px; } }

/* ---------- Catalogue ---------- */
.catalogue { padding-bottom: clamp(64px, 40px + 6vw, 120px); position: relative; z-index: 2; }
.filters {
  position: sticky; top: 77px; z-index: 20; display: grid; gap: 0 14px; align-items: end; margin-top: -28px;
  padding: 18px 18px 2px; border-radius: 18px; background: rgba(28, 29, 38, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.filters .field { margin-bottom: 16px; }
.filters .input { min-height: 48px; }
.filters__clear { margin-bottom: 16px; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } .filters:has(.filters__search) { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto; } }
@media (max-width: 759px) { .filters { position: relative; top: auto; grid-template-columns: 1fr 1fr; } .filters .field:has(#f-genre), .filters .field:has(#f-reader), .filters__search { grid-column: 1 / -1; } }
.filters__count { margin: 18px 0 0; color: var(--muted); }
.shelf-sec { padding-top: clamp(40px, 30px + 3vw, 72px); }
.shelf-sec__head { display: grid; gap: 10px; max-width: 46rem; margin-bottom: 28px; }
.shelf-sec__head .display { margin: 0; }
.shelf-sec__head p { color: var(--muted); margin: 0; }
.shelf-sec__head .link-arrow { justify-self: start; }
.upcoming { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: center; margin-top: 24px; padding: 20px; max-width: 46rem; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(28, 29, 38, 0.6); }
.upcoming::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(220px circle at var(--mx, 0%) var(--my, 50%), rgba(162, 131, 242, 0.18), transparent 60%); }
.upcoming__n { font: 400 2.75rem/1 var(--display); color: var(--violet); }
.upcoming__h { font: 400 1.75rem/1 var(--display); text-transform: uppercase; margin: 0 0 4px; }
.upcoming__p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.upcoming .btn { grid-column: 2; justify-self: start; position: relative; }
@media (min-width: 700px) { .upcoming { grid-template-columns: auto 1fr auto; } .upcoming .btn { grid-column: auto; } }
.empty { position: relative; overflow: hidden; display: grid; gap: 12px; justify-items: start; max-width: 46rem; padding: clamp(28px, 4vw, 44px); border-radius: 20px; box-shadow: inset 0 0 0 1.5px rgba(205, 187, 255, 0.25); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.empty::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 80%) var(--my, 0%), rgba(162, 131, 242, 0.18), transparent 60%); }
.empty > * { position: relative; }
.empty p { margin: 0; color: var(--muted); }
.empty__icon { font-size: 28px; color: var(--lilac); text-shadow: 0 0 20px var(--violet); }
.catalogue .empty { margin-top: 40px; }

/* ---------- Case files (Mysteries) ---------- */
.cases { display: grid; gap: 28px; }
@media (min-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; } }
.case { display: grid; gap: 24px; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgba(104, 70, 91, 0.35), var(--surface) 55%); box-shadow: inset 0 0 0 1px var(--line-2); perspective: 900px; }
@media (min-width: 600px) { .case { grid-template-columns: 200px 1fr; align-items: center; } }
.case__stage { position: relative; display: block; border-radius: 6px; transform-style: preserve-3d; transition: transform 500ms var(--ease-out-expo); }
.case__cover { width: 100%; border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.case__start { position: absolute; z-index: 2; top: -12px; left: -10px; padding: 4px 10px; border-radius: 8px; font: 500 14px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: linear-gradient(135deg, var(--lilac), var(--violet)); box-shadow: 0 8px 20px -6px rgba(162, 131, 242, 0.9); }
.case__body .mono { margin-bottom: 8px; }
.case__title { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); margin-bottom: 8px; }
.case__title a { color: var(--text); text-decoration: none; }
.case__title a:hover { color: var(--lilac); }
.case__sub { color: var(--muted); margin-bottom: 12px; }
.case .spec { margin-bottom: 18px; }
.case--upcoming { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(205, 187, 255, 0.22); }
.case__stage--empty { display: grid; place-items: center; aspect-ratio: 7 / 10; border: 1.5px dashed rgba(205, 187, 255, 0.35); }
.case__stage--empty .display { font-size: 5rem; color: rgba(205, 187, 255, 0.5); }
.evidence { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.evidence__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 131, 242, 0.6), transparent); filter: blur(20px); animation: breathe 7s var(--ease) infinite alternate; }
.evidence__web { position: absolute; inset: 0; width: 100%; height: 100%; }
.evidence__web path { animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.evidence__tag { position: absolute; padding: 6px 12px; border-radius: 8px; font: 500 14px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); background: rgba(28, 29, 38, 0.8); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); animation: float 6s var(--ease) infinite alternate; }
.evidence__tag--1 { left: 4%; top: 12%; }
.evidence__tag--2 { right: 2%; top: 8%; animation-delay: 1.2s; }
.evidence__tag--3 { left: 14%; bottom: 10%; animation-delay: 2.1s; }
.evidence__tag--4 { right: 4%; bottom: 18%; color: var(--ink); background: linear-gradient(135deg, var(--lilac), var(--violet)); animation-delay: 0.6s; }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.trio__grid--two { display: grid; gap: 20px; }
@media (min-width: 1000px) { .trio__grid--two { grid-template-columns: 1fr 1.15fr; } }

/* ---------- Sign-up band ---------- */
.signband { position: relative; overflow: hidden; display: grid; gap: 28px; padding: clamp(26px, 4vw, 52px); border-radius: 24px; background: linear-gradient(160deg, #241F38, var(--surface) 60%); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.25), 0 40px 80px -40px rgba(125, 92, 224, 0.7); }
.signband__glow { position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(162, 131, 242, 0.5), transparent 65%); filter: blur(10px); animation: drift 14s var(--ease) infinite alternate; }
.signband > *:not(.signband__glow) { position: relative; }
.signband__copy p:not(.mono) { color: var(--muted); max-width: 32em; }
.signband__copy .display { margin: 6px 0 16px; }
@media (min-width: 1000px) { .signband { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; } .signband--stack { grid-template-columns: 1fr; } }
.sheets { position: relative; height: 150px; margin: 18px 0 12px; }
.sheet { position: absolute; width: 110px; height: 140px; border-radius: 6px; background: #F8F4EA; box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.7); }
.sheet--1 { left: 0; transform: rotate(-9deg); opacity: 0.6; }
.sheet--2 { left: 46px; transform: rotate(-2deg); opacity: 0.85; }
.sheet--3 { left: 96px; transform: rotate(6deg); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 26px 14px; align-content: start;
  background: #F8F4EA linear-gradient(#222A35, #222A35) 14px 12px / 50px 4px no-repeat; }
.sheet--3 i { aspect-ratio: 1; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #7D5CE0; }
.sheet--3 i:nth-child(2) { background: #222A35; }

/* ---------- Book page ---------- */
.bookhero { position: relative; overflow: hidden; padding: clamp(16px, 3vw, 40px) 0 clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.bookhero__bg { position: absolute; left: -10%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(125, 92, 224, 0.35), transparent); animation: breathe 9s var(--ease) infinite alternate; }
.bookhero__grid { position: relative; z-index: 2; display: grid; gap: 36px; align-items: start; }
.bookhero__media { position: relative; }
.bookhero__stage { position: relative; perspective: 1000px; }
.bookhero__glow { position: absolute; inset: 8% -6% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 131, 242, 0.7), transparent); filter: blur(26px); }
.zoom-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: var(--muted); text-align: left; border-radius: 6px; transform-style: preserve-3d; transition: transform 600ms var(--ease-out-expo); }
.bookhero__cover { width: 100%; border-radius: 4px; box-shadow: 0 40px 60px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.bookhero__cover.is-mockup { box-shadow: none; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.7)); }
.zoom-btn__hint { display: none; margin-top: 18px; color: var(--muted); }
.bookhero__context { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.bookhero__context a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bookhero__title { font-size: clamp(2.5rem, 1.6rem + 4vw, 5.75rem); line-height: 0.9; margin-bottom: 12px; }
.bookhero__sub { font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem); color: var(--lilac); margin-bottom: 14px; max-width: 34em; }
.bookhero__short { color: var(--muted); max-width: 34em; }
.bookhero__info .spec { margin: 6px 0 20px; padding: 12px 0; border-block: 1px solid var(--line); }
@media (max-width: 599px) { .bookhero__grid { grid-template-columns: 1fr; gap: 28px; } .bookhero__media { width: min(62%, 230px); justify-self: center; } }
@media (min-width: 600px) { .bookhero__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1000px) {
  .bookhero__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .bookhero__media { max-width: 420px; justify-self: center; width: 100%; }
  .zoom-btn__hint { display: inline-block; }
}
.formats { border: 0; padding: 0; margin: 0 0 20px; }
.formats legend { font-weight: 700; margin-bottom: 8px; }
.formats__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.formats input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.formats label { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-weight: 600; }
.formats input:checked + label { background: var(--violet); color: var(--ink); box-shadow: none; }
.formats input:focus-visible + label { outline: 3px solid var(--lilac); outline-offset: 2px; }
.buybox { padding: 20px; border-radius: 20px; background: rgba(28, 29, 38, 0.7); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.25); backdrop-filter: blur(10px); }
.buybox__row { display: grid; gap: 12px; }
.buybox__row .field { margin: 0; }
.buybox__row .btn { justify-content: center; }
.buybox__note { margin: 12px 0 0; font-size: 0.95rem; color: var(--muted); }
@media (min-width: 560px) { .buybox__row { grid-template-columns: 210px 1fr; align-items: end; } }
.bookbody__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .bookbody__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; } .glance { position: sticky; top: 100px; } }
.bookbody__main > section + section { margin-top: 48px; }
.bookbody__h3 { font: 700 1.0625rem var(--body); margin: 28px 0 14px; }
.vticks { display: grid; gap: 12px; }
.vticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.vticks li::before { content: ""; width: 30px; height: 30px; border-radius: 9px; margin-top: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2314151B' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat, radial-gradient(circle at 35% 30%, var(--lilac), var(--violet) 65%);
  box-shadow: 0 0 16px rgba(162, 131, 242, 0.5); }
.panel { position: relative; border-radius: 20px; padding: 28px 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.panel[data-spotlight]::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(162, 131, 242, 0.18), transparent 60%); }
.panel[data-spotlight]:hover::before { opacity: 1; }
.panel > * { position: relative; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 500 14px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.order { display: grid; gap: 16px; }
@media (min-width: 760px) { .order { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.order__item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.order__item.is-current { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 40px -10px rgba(162, 131, 242, 0.6); }
.order__cover { width: 100%; border-radius: 3px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.8); }
.order__title { margin: 2px 0 0; font-weight: 700; }
.order__title a { color: var(--text); }
.order__item--upcoming { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(205, 187, 255, 0.2); }
.order__ph { display: grid; place-items: center; aspect-ratio: 7 / 10; border: 1.5px dashed rgba(205, 187, 255, 0.35); border-radius: 4px; font-size: 2rem; color: rgba(205, 187, 255, 0.5); }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); background: rgba(18, 19, 25, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--line-2); transform: translateY(110%); transition: transform 300ms var(--ease-out-expo); }
.buy-bar.is-visible { transform: none; }
.buy-bar img { width: 34px; height: auto; border-radius: 2px; }
.buy-bar__title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1000px) { .buy-bar { display: none; } }
@media (max-width: 999px) { body:has(.buy-bar) .foot { padding-bottom: 96px; } }
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 92vh; overflow: visible; }
dialog.zoom::backdrop { background: rgba(10, 10, 14, 0.88); backdrop-filter: blur(6px); }
dialog.zoom img { max-height: 84vh; width: auto; border-radius: 4px; box-shadow: 0 0 80px rgba(162, 131, 242, 0.35); }
.zoom__close { position: absolute; top: -58px; right: 0; color: var(--text); }

/* ---------- Series fan ---------- */
.fan { position: relative; aspect-ratio: 10 / 8; max-width: 540px; width: 100%; margin-inline: auto; }
.fan__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 131, 242, 0.6), transparent); filter: blur(24px); animation: breathe 8s var(--ease) infinite alternate; }
.fan__cover { position: absolute; width: 46%; transition: transform 600ms var(--ease-out-expo); }
.fan__img { width: 100%; border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.9); }
.fan__cover--1 { left: 27%; top: 0; z-index: 3; }
.fan__cover--2 { left: 0; top: 10%; rotate: -7deg; }
.fan__cover--3 { right: 0; top: 10%; rotate: 7deg; }
.fan:hover .fan__cover--2 { transform: translateX(-12px) rotate(-3deg); }
.fan:hover .fan__cover--3 { transform: translateX(12px) rotate(3deg); }
.phero--split .vticks { max-width: 34em; }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.about .phero__bg { right: auto; left: -20%; }
.about__grid { position: relative; z-index: 2; display: grid; gap: 48px; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } .about-portrait { position: sticky; top: 110px; } }
.about-portrait { position: relative; margin: 0 auto; width: min(100%, 460px); }
.about-portrait__glow { position: absolute; inset: 6% -8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(162, 131, 242, 0.65), transparent); filter: blur(30px); animation: breathe 8s var(--ease) infinite alternate; }
.about-portrait__frame { position: relative; border-radius: 220px 220px 24px 24px; overflow: hidden; box-shadow: 0 0 0 1px rgba(205, 187, 255, 0.35), 0 40px 90px -40px rgba(125, 92, 224, 0.9); }
.about-portrait__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(162, 131, 242, 0.45), transparent 45%), linear-gradient(0deg, rgba(18, 19, 25, 0.75), transparent 35%); mix-blend-mode: soft-light; pointer-events: none; }
.about-portrait__img { width: 100%; height: auto; }
.signature--about { position: absolute; left: -4%; bottom: -6%; margin: 0; padding: 0; font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.prose { max-width: 40rem; }
.prose h2 { margin: 48px 0 14px; }
.prose p { color: #D9D4E6; }
.prose__lead { font-size: 1.25rem; color: var(--text) !important; line-height: 1.55; }
.minis { display: grid; gap: 12px; }
@media (min-width: 640px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); transition: box-shadow 200ms, transform 300ms var(--ease-out-expo); }
.mini:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.4); }
.mini__cover { width: 100%; border-radius: 2px; }
.mini__kind { display: block; font: 500 14px/1.3 var(--mono); color: var(--violet); }
.mini__title { display: block; font-weight: 700; line-height: 1.3; }
.touch__lines { display: grid; gap: 10px; }
.touch__lines li { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.touch__lines li::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms; background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(162, 131, 242, 0.18), transparent 60%); }
.touch__lines li:hover::before { opacity: 1; }
.touch__lines strong { font: 400 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.touch__lines span { color: var(--muted); }
@media (min-width: 760px) { .touch__lines li { grid-template-columns: 12rem 1fr; align-items: center; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.cform .btn--glow { margin-top: 4px; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .display--sm { font-size: 2rem; margin-bottom: 8px; }
.contact-aside p { margin: 0; color: var(--muted); }

/* ---------- Legal ---------- */
.template-banner { background: rgba(240, 160, 145, 0.12); border-bottom: 1px solid #F0A091; color: #F7C7BC; padding: 12px 0; font-weight: 700; }
.legal { display: grid; gap: 32px; padding-block: 48px clamp(64px, 40px + 6vw, 120px); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } .toc { position: sticky; top: 100px; align-self: start; } }
.toc ol { list-style: decimal; padding-left: 1.2em; margin-top: 10px; color: var(--muted); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--lilac); }
.legal .prose h2:first-child { margin-top: 0; }

/* ---------- Popup ---------- */
.pop { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: visible; }
.pop::backdrop { background: rgba(8, 8, 12, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pop__inner { position: relative; overflow: hidden auto; max-height: calc(100vh - 32px); padding: 34px 30px 18px; border-radius: 26px; background: linear-gradient(160deg, #262040, var(--surface) 60%); box-shadow: inset 0 0 0 1px rgba(205, 187, 255, 0.3), 0 50px 100px -40px rgba(125, 92, 224, 0.9); }
.pop__inner > * { position: relative; }
.pop__glow { position: absolute !important; width: 420px; height: 420px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(162, 131, 242, 0.55), transparent 65%); pointer-events: none; animation: drift 14s var(--ease) infinite alternate; }
.pop__close { position: absolute !important; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 0; background: rgba(242, 238, 248, 0.06); color: var(--text); cursor: pointer; }
.pop__close:hover { background: rgba(242, 238, 248, 0.14); }
.pop__close svg { width: 20px; height: 20px; }
.pop__kicker { margin-bottom: 8px; }
.pop__h { font-size: clamp(2.6rem, 2rem + 2.5vw, 3.75rem); margin-bottom: 12px; padding-right: 40px; }
.pop__intro { color: var(--muted); margin-bottom: 20px; }
.pop .btn--glow { width: 100%; justify-content: center; }
.pop__dismiss { display: block; margin: 10px auto 0; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--muted); font: 600 0.95rem var(--body); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pop__dismiss:hover { color: var(--text); }
.pop[open] .pop__inner { animation: pop-in 320ms var(--ease-out-expo) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .pop { width: 100vw; max-width: 100vw; margin: auto 0 0; }
  .pop__inner { border-radius: 24px 24px 0 0; padding: 30px var(--gutter) max(18px, env(safe-area-inset-bottom)); max-height: 88vh; }
}
body.pop-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .phero__bg, html:not(.force-motion) .evidence__web path, html:not(.force-motion) .evidence__tag { animation: none !important; }
}


/* ---------- Footer, centred style ----------
   One calm stack: name, tagline, page links, social icons, then the legal line.
   A deep ink-to-violet gradient with slow diagonal light planes drifting across it. */
.foot--centre {
  position: relative; overflow: hidden; text-align: center; border-top: 0;
  padding: clamp(64px, 40px + 6vw, 112px) 0 24px; color: var(--text);
  background: linear-gradient(180deg, #17172A 0%, #241F45 42%, #3E3180 78%, #4E3E9C 100%);
}
.foot__planes { position: absolute; inset: 0; pointer-events: none; }
.foot__planes span {
  position: absolute; top: -40%; width: 46%; height: 180%;
  background: linear-gradient(90deg, rgba(242, 238, 248, 0.07), rgba(242, 238, 248, 0) 70%);
  transform: rotate(28deg); animation: plane 22s var(--ease) infinite alternate;
}
.foot__planes span:nth-child(1) { left: -12%; }
.foot__planes span:nth-child(2) { left: 34%; opacity: 0.6; animation-duration: 28s; animation-delay: -6s; }
.foot__planes span:nth-child(3) { left: 72%; opacity: 0.8; transform: rotate(-24deg); animation-duration: 25s; animation-delay: -12s; }
@keyframes plane { from { translate: -4% 0; } to { translate: 6% 0; } }
.foot__stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.foot--centre .foot__name {
  font: 400 clamp(2.5rem, 1.9rem + 2.6vw, 4rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.16em;
  margin-right: -0.16em; color: var(--text); text-decoration: none; text-shadow: 0 0 40px rgba(162, 131, 242, 0.45);
}
.foot--centre .foot__name:hover { color: #fff; text-shadow: 0 0 50px rgba(205, 187, 255, 0.8); }
.foot__tagline { margin: 14px 0 40px; font: 600 0.95rem/1.4 var(--body); text-transform: uppercase; letter-spacing: 0.16em; color: rgba(242, 238, 248, 0.86); }
.foot__socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 30px; margin-top: 0; }
.foot--centre .foot__social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); transition: background-color 200ms, transform 300ms var(--ease-out-expo), color 200ms; }
.foot__social svg { width: 20px; height: 20px; }
.foot--centre a.foot__social:hover { background: rgba(242, 238, 248, 0.14); transform: translateY(-3px); color: #fff; }
.foot__social--off { opacity: 0.7; }
.foot__socials .needs { margin-top: 8px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 22px; width: 100%; margin: 52px 0 0; padding-top: 14px; border-top: 1px solid rgba(242, 238, 248, 0.16); font-size: 0.95rem; color: rgba(242, 238, 248, 0.8); }
.foot__legal a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(242, 238, 248, 0.86); }
.foot__legal a:hover { color: #fff; }
.foot--centre :focus-visible { outline-color: #fff; }
.foot__tagline { text-wrap: balance; }
@media (max-width: 640px) { .foot__tagline { letter-spacing: 0.1em; font-size: 0.9rem; } .foot__name { letter-spacing: 0.1em; margin-right: -0.1em; } }
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .foot__planes span { animation: none; } }


/* ---------- Legal pages: shared Terms and Privacy copy ---------- */
.legal-prose h2 { font: 400 clamp(1.9rem, 1.6rem + 1.2vw, 2.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--violet); margin: 48px 0 14px; scroll-margin-top: 110px; }
.legal-prose h2:first-child, .legal-prose .legal-summary + h2 { margin-top: 0; }
.legal-prose .legal-summary + h2 { margin-top: 40px; }
.legal-prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; color: #D9D4E6; }
.legal-prose li { margin-top: 6px; }
.legal-prose li::marker { color: var(--violet); }
.legal-prose strong { color: var(--text); }
.legal-summary { font-size: 1.125rem; line-height: 1.6; padding: 18px 20px; border-radius: 14px; color: var(--text) !important; background: rgba(162, 131, 242, 0.1); box-shadow: inset 3px 0 0 var(--violet), inset 0 0 0 1px rgba(205, 187, 255, 0.2); }
.legal-address { font-style: normal; line-height: 1.8; color: #D9D4E6; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.table-wrap:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #D9D4E6; }
.legal-table th { font: 500 14px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); background: rgba(162, 131, 242, 0.08); }
.legal-table tr:last-child td { border-bottom: 0; }

/* Let the table scroll inside its box instead of widening the page */
.legal > *, .legal-prose { min-width: 0; }

/* Live forms: confirm and unsubscribe buttons, sending state, Turnstile */
.notice-form { margin-top: 28px; }
.notice-msg { margin-top: 20px; max-width: 34em; }
.cf-turnstile { margin: 14px 0 4px; }
.cf-turnstile:empty { margin: 0; }
button[aria-busy="true"] { opacity: 0.7; cursor: progress; }
