/* v2 — extras on top of the original Tailwind design */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 7.5rem; }
:focus-visible { outline: 2px solid #5c3dd9; outline-offset: 3px; }
.btn-nowrap { white-space: nowrap; }

/* forms */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { display: none; color: #ba1a1a; font-size: 13px; margin: 4px 0 0 16px; }
input[aria-invalid="true"] { border-color: #ba1a1a !important; }
input[aria-invalid="true"] + .err { display: block; }
.form-msg { display: none; font-size: 14px; padding: .75rem 1rem; border-radius: .75rem; background: #ffdad6; color: #93000a; }
.form-msg.show { display: block; }

/* CSS book cover (new title) */
.book {
  position: relative; width: 100%; max-width: 250px; aspect-ratio: 2 / 3; margin: 0 auto;
  background: #f9f6ee; border-radius: 4px 10px 10px 4px;
  box-shadow: 0 24px 40px -14px rgba(41,21,89,.45), inset 6px 0 8px -4px rgba(41,21,89,.2);
  transform: rotate(1.5deg); display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 8% 7% 7%; overflow: hidden; transition: transform .4s ease;
}
.book:hover { transform: rotate(0deg) scale(1.02); }
.book::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(41,21,89,.28), rgba(41,21,89,0)); }
.book .seal { position: absolute; top: 3.5%; right: 4.5%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #291559; color: #fff; display: grid; place-items: center; font: 700 5.5px/1.25 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; border: 2px dotted rgba(255,255,255,.55); outline: 2px solid #291559; }
.book .t { font-family: "Anton", Impact, sans-serif; color: #291559; text-transform: uppercase; line-height: .95; font-size: 2.55rem; width: 100%; }
.book .seal + .t { margin-top: 30%; }
.book .figure { flex: 1; min-height: 0; display: flex; align-items: center; margin: 3% 0; }
.book .figure img { height: 100%; max-height: 6.2rem; width: auto; }
.book .sub { font-size: .62rem; line-height: 1.3; color: #26204a; font-weight: 500; max-width: 92%; }
.book .by { margin-top: 5%; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .14em; color: #1a1030; font-size: .8rem; text-transform: uppercase; }

/* interactive 5-4-3-2-1 */
.stepper { background: #291559; color: #fff; border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 20px 30px -10px rgba(41,21,89,.35); position: relative; overflow: hidden; }
@media (min-width: 640px) { .stepper { padding: 2.25rem; } }
.stepper::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(146,120,255,.35), transparent); pointer-events: none; }
.stepper .label { font: 700 12px/1.2 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #bcaef0; }
.stepper .dots { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.stepper .dots i { flex: 1; height: 5px; border-radius: 9999px; background: rgba(255,255,255,.18); transition: background .3s; }
.stepper .dots i.on { background: #fff; }
.stepper .big { font: 800 4.5rem/1 Montserrat, sans-serif; }
.stepper .sense { font: 700 1.5rem/1.3 Montserrat, sans-serif; margin: .25rem 0 .6rem; }
.stepper .prompt { color: #e4dcff; min-height: 4.8em; font-size: 1.0625rem; line-height: 1.6; }
.stepper .actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stepper .sbtn { display: inline-flex; align-items: center; justify-content: center; font: 700 14px/1 Montserrat, sans-serif; border-radius: 9999px; padding: .9rem 1.6rem; min-height: 3rem; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: background-color .15s; }
.stepper .sbtn-light { background: #fff; color: #291559; }
.stepper .sbtn-light:hover { background: #ede9fe; }
.stepper .sbtn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.stepper .sbtn-line:hover { background: rgba(255,255,255,.1); }
.stepper .done-msg { font: 700 1.5rem/1.3 Montserrat, sans-serif; }

/* phone lock-screen mockup */
.phone { width: min(100%, 270px); margin: 0 auto; aspect-ratio: 9 / 14.5; background: #0f0a22; border-radius: 2.2rem; padding: .55rem; box-shadow: 0 20px 30px -10px rgba(41,21,89,.35); }
.phone-in { height: 100%; border-radius: 1.7rem; background: linear-gradient(170deg, #35197a, #1c0d47 70%); color: #fff; padding: 1.5rem 1.1rem 1rem; display: flex; flex-direction: column; text-align: center; }
.phone-in .time { font: 600 2.8rem/1 Montserrat, sans-serif; margin-top: .4rem; }
.phone-in .date { font-size: .72rem; opacity: .75; margin-bottom: 1rem; }
.phone-in .mini { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 1rem; padding: .8rem .7rem; text-align: left; font-size: .72rem; line-height: 1.5; }
.phone-in .mini b { font: 700 .64rem Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #cfc4ff; display: block; margin-bottom: .3rem; }
.phone-in .mantra { margin-top: auto; font: 700 .92rem/1.35 Montserrat, sans-serif; padding-top: .8rem; }

/* mobile sticky CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid #ddd6fe; box-shadow: 0 -10px 30px -10px rgba(41,21,89,.18); transform: translateY(110%); transition: transform .3s ease; }
.sticky-cta.show { transform: translateY(0); }
@media (min-width: 768px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* free workbook cover mockup */
.wbook { width: min(100%, 250px); aspect-ratio: 8.5 / 11; background: #291559; color: #fff; border-radius: 6px 12px 12px 6px; padding: 1.6rem 1.3rem; display: flex; flex-direction: column; box-shadow: 0 24px 40px -14px rgba(41,21,89,.5); transform: rotate(-2deg); position: relative; overflow: hidden; }
.wbook::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(146,120,255,.45), transparent); }
.wbook .brand { font: 800 .62rem Montserrat, sans-serif; letter-spacing: .22em; color: #cfc4ff; position: relative; }
.wbook .ttl { font: 800 1.7rem/1.08 Montserrat, sans-serif; margin-top: 28%; position: relative; }
.wbook .ttl em { font-style: normal; color: #b9a7ff; }
.wbook .meta { margin-top: auto; font: 500 .66rem/1.5 Inter, sans-serif; color: #d9d0f5; border-top: 1px solid rgba(255,255,255,.25); padding-top: .6rem; position: relative; }

/* shop pages */
.prose-npt p { margin-top: .75rem; }
details.faq { border: 1px solid #e9d5ff; border-radius: 1rem; background: #fff; padding: 1rem 1.25rem; }
details.faq + details.faq { margin-top: .75rem; }
details.faq summary { cursor: pointer; font: 700 1rem/1.4 Montserrat, sans-serif; color: #0f172a; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-weight: 800; color: #5c3dd9; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: .6rem; color: #4c4660; }
.notice { border-radius: 1rem; padding: .9rem 1.1rem; font-size: 14px; }
.notice.info { background: #ede9fe; color: #301667; }
.notice.err { background: #ffdad6; color: #93000a; }

/* free workbook modal */
dialog.optin { border: 0; border-radius: 1.5rem; padding: 0; width: min(92vw, 30rem); max-height: 92vh; overflow: auto; background: #fff; color: #0b1c30; box-shadow: 0 30px 60px -20px rgba(41,21,89,.5); margin: auto; }
dialog.optin::backdrop { background: rgba(25,12,55,.55); backdrop-filter: blur(2px); }
.optin-in { position: relative; padding: 1.75rem 1.5rem 1.5rem; }
@media (min-width: 640px) { .optin-in { padding: 2rem; } }
.optin-x { position: absolute; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: grid; place-items: center; color: #4c4660; background: transparent; border: 0; cursor: pointer; }
.optin-x:hover { background: #f5f3ff; }
.optin-in .err { margin-left: 1rem; }
