/* the landing page in the hand-painted identity of the book: ink-wash stains instead of cards, brush rings, brush lines,
   hand-drawn icons, the enso instead of glows. Loaded after styles.css; pincel.js gives every stain and ring its own shape. */
:root { --st1: #EFE3CF; --st2: #FFFAF1; --stn: #D9D7DE; --stb: #1B2030; --line: #CDB78F; }
:root[data-theme=dark] { --st1: #1D2231; --st2: #222839; --stn: #2B3350; --stb: #262E46; --line: #4A5063; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --st1: #1D2231; --st2: #222839; --stn: #2B3350; --stb: #262E46; --line: #4A5063; } }

/* ---- stains: the element keeps its content; its shape is painted behind it by ::after, cut out with a per-element mask */
.st { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; position: relative; isolation: isolate; }
.st::after { content: ''; position: absolute; inset: -7px; z-index: -1; background: var(--stc, var(--st1)); pointer-events: none;
  -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; }
.offer .st { --stc: var(--st2); }
.dark .st { --stc: rgba(255, 255, 255, .075); }
.st.night { --stc: var(--stn); color: var(--ink) !important; }
.step.night h3, .step.night p, .flow li.night, .flow li.night b { color: var(--ink) !important; } .step.night .t, .flow li.night span { color: var(--rust) !important; }
.step.night .five li::before { color: var(--saffron); }
.tier.best.st { --stc: var(--stb); }
/* roomier inside, so nothing sits on the wandering edge */
.pricebox.st { padding: 22px 26px; } .step.st { padding: 30px 28px; } .week.st { padding: 30px 28px; } .item.st { padding: 20px 22px; } .fit > .st { padding: 30px 28px; }
.dream > .st { padding: 24px 24px 20px 58px; } .flow li.st { padding: 22px 22px 22px 72px; } .tier.st { padding: 34px 30px; } .honest.st { padding: 26px 28px; } .pains li.st { padding: 18px 22px 18px 54px; }

/* small labels that were pills */
.badges li { background: none; padding: 4px 4px 4px 0; } .badges li::before { width: 9px; height: 9px; border-radius: 50% 46% 54% 48%; transform: rotate(-12deg); }
.pricebox .off, .price .off, .ribbon { border-radius: 0 !important; border: 0 !important; background: none !important; position: absolute; isolation: isolate; }
.pricebox .off, .price .off { position: relative; }
.pricebox .off::after, .price .off::after, .ribbon::after { content: ''; position: absolute; inset: -5px -9px; z-index: -1; -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; }
.pricebox .off { color: var(--paper) !important; } .pricebox .off::after { background: var(--rust); }
.price .off::after { background: var(--saffron); } .ribbon::after { background: var(--gold); }

/* buttons: a stain of saffron, not a glossy pill */
.btn { border-radius: 0; background: none; box-shadow: none !important; position: relative; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: -5px -8px; z-index: -2; background: var(--saffron); -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; transition: transform .15s; }
.btn:hover { box-shadow: none; } .btn:hover::after { transform: scale(1.03); }
.btn.ghost::after { background: var(--st1); } .offer .btn.ghost::after { background: var(--paper-3); }
.tier.best .btn::after, .dark .btn::after { background: var(--gold); }
.theme { border: 0; background: none; }

/* ---- brush rings round numbers and icons */
.ringed { position: relative; display: inline-grid; place-items: center; background: none !important; border-radius: 0 !important; isolation: isolate; }
.ringed > svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.week .n.ringed { width: 74px; height: 74px; font-size: 2.1rem; line-height: 1; }
.flow li::before { background: none !important; border-radius: 0; width: 40px; height: 40px; left: 20px; top: 20px; font-size: 1.15rem;
  background: var(--ringbg) center / contain no-repeat !important; }
.dream > div::before { background: var(--saffron); border-radius: 52% 46% 55% 45% / 48% 54% 46% 52%; width: 17px; height: 17px; transform: rotate(-14deg); }

/* ---- brush lines */
.quote { border-left: 0; padding-left: 24px; background: var(--vbar) left top / 14px 100% no-repeat; }
.faq details { border-bottom: 0; background: var(--hbar) left bottom / 100% 12px no-repeat; }
.tier li::before { border: 0 !important; transform: none; width: 18px; height: 16px; top: .2em; background: var(--tick) center / contain no-repeat; }

/* ---- the enso instead of glows */
.dark::before { display: none; }
.mock .sun { background: var(--enso2) center / contain no-repeat !important; border-radius: 0; inset: -14% -20% -6%; opacity: .55 !important; }

/* photos keep a soft shape, without the app-like shadow */
.guide img, .mornings img { box-shadow: none; }

/* ================= second round ================= */
/* numbers: white inside the ring, in both themes */
.week .n.ringed, .flow li::before { color: #8E3B12 !important; }

/* "How it works": the hand-drawn icon sits beside the label, as in the book */
.step .t { display: flex; align-items: center; gap: 9px; } .step .t .ic { width: 26px; height: 26px; flex: none; color: var(--saffron); }
.step.night .t .ic { color: var(--rust); }

/* photos of the monk: cut out by hand, like the stains */
.cut { -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; border-radius: 0 !important; box-shadow: none !important; }
.mornings img:nth-child(1) { transform: rotate(-1.4deg); } .mornings img:nth-child(3) { transform: rotate(1.6deg); }

/* ---- the buttons that matter: wider, glowing, with a slow shine */
.hero .btn { width: 100%; min-width: 0; padding: 22px 30px; font-size: 1.2rem; }
.btn.main { animation: glow 2.8s ease-in-out infinite; }
.btn.main::before { content: ''; position: absolute; inset: -5px -8px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 58%) 130% 0 / 260% 100% no-repeat;
  -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; animation: shine 4.6s ease-in-out infinite; }
.btn.main:hover { transform: translateY(-3px) scale(1.02); }
section.dark .btn.main { padding: 22px 44px; font-size: 1.2rem; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 8px 14px rgba(194, 96, 30, .45)); } 50% { filter: drop-shadow(0 8px 30px rgba(242, 168, 84, .95)); } }
@keyframes shine { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }

/* ---- the Complete edition: a gold edge, a halo, a little bigger */
.tier.best.st::before { content: ''; position: absolute; inset: -13px; z-index: -2; background: linear-gradient(160deg, #F2C37A, #C89B3C 55%, #E8B45E); pointer-events: none;
  -webkit-mask: var(--stain) center / 100% 100% no-repeat; mask: var(--stain) center / 100% 100% no-repeat; }
.tier.best { animation: halo 3.6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { filter: drop-shadow(0 0 16px rgba(242, 195, 122, .28)); } 50% { filter: drop-shadow(0 0 38px rgba(242, 195, 122, .62)); } }
.tier.best .btn.main { padding: 22px 26px; font-size: 1.18rem; }
.tier.best .ribbon { font-size: .78rem; padding: 9px 20px; top: -20px; }
.tier.best .price .now { color: var(--gold-soft); }
@media (min-width: 860px) { .tier.best { transform: scale(1.04); transform-origin: 50% 40%; z-index: 1; } }

/* ---- the enso that paints itself */
.enso-live { position: absolute; pointer-events: none; overflow: visible; }
.enso-live path { fill: none; stroke: #C89B3C; stroke-width: 20; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.5, 0, .2, 1) .25s; opacity: .55; }
.seen .enso-live path { stroke-dashoffset: 0; }
.enso-live.side { width: 230px; height: 230px; top: 70px; right: max(28px, calc(50% - 600px)); }
.enso-live.halo { width: 230px; height: 230px; left: 50%; top: 54px; margin-left: -115px; } .enso-live.halo path { stroke-width: 15; opacity: .8; }
@media (max-width: 859px) { .enso-live.side { width: 92px; height: 92px; top: 12px; right: 14px; } .enso-live.halo { top: 22px; } }

/* ---- small lights drifting up in the dark bands */
.mote { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #F2C37A; opacity: 0; pointer-events: none; filter: blur(.6px); animation: mote var(--d) linear var(--w) infinite; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .55; } 70% { opacity: .3; } 100% { transform: translate(26px, -210px); opacity: 0; } }

/* ---- the book breathes; cards answer the hand */
.mock .book { animation: float 7s ease-in-out infinite; } .mock .abook { animation: float2 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2.2deg) translateY(-9px); } }
@keyframes float2 { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }
.st::after { transition: transform .35s ease; } .st:hover::after { transform: scale(1.018) rotate(.25deg); }
.week .n.ringed { transition: transform .4s ease; } .week:hover .n.ringed { transform: rotate(-8deg) scale(1.06); }

@media (prefers-reduced-motion: reduce) { .btn.main, .btn.main::before, .tier.best, .mote, .mock .book, .mock .abook { animation: none !important; } .enso-live path { transition: none; stroke-dashoffset: 0; } .mote { display: none; } }

/* ================= third round ================= */
/* Complete edition: no gold edge; a quiet, steady glow only */
.tier.best.st::before { display: none; }
.tier.best { animation: none; filter: drop-shadow(0 0 22px rgba(242, 195, 122, .26)); }
/* buttons: a much softer glow, a fainter and rarer shine */
@keyframes glow { 0%, 100% { filter: drop-shadow(0 6px 10px rgba(194, 96, 30, .22)); } 50% { filter: drop-shadow(0 6px 16px rgba(242, 168, 84, .42)); } }
.btn.main { animation-duration: 4s; }
.btn.main::before { background-image: linear-gradient(105deg, rgba(255,255,255,0) 44%, rgba(255,255,255,.2) 50%, rgba(255,255,255,0) 56%); animation-duration: 8s; }
/* last button: wide enough for one line, and the price never breaks */
section.dark .btn.main { width: min(100%, 460px); padding: 22px 30px; white-space: nowrap; } section.dark .btn.main small { white-space: normal; }
@media (max-width: 420px) { section.dark .btn.main { font-size: 1.08rem; padding: 20px 14px; } }

/* ================= fourth round ================= */
.btn-t { display: block; }
/* main buttons: soft glow + a slow breath, and a handwritten nudge above */
.btn.main { animation: glow 4s ease-in-out infinite, breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.022); } }
.nudge { text-align: center; margin: 4px 0 8px; transform: rotate(-2deg); } .dark .nudge { margin-bottom: 12px; }
/* Complete edition: a warm rust stain that stands out on both themes, bigger tilted label, handwritten note; no glow */
.tier.best.st { --stc: #9A4416; } .tier.best { filter: none; }
.tier.best .ribbon { font-size: .9rem; padding: 11px 24px; top: -24px; transform: translateX(-50%) rotate(-3deg); }
.tier.best .cn { position: absolute; right: 26px; top: 34px; transform: rotate(4deg); color: #F2C37A; font-size: 1.45rem; }
.tier.best .price .now { color: #FFE9C4; } .tier.best .for, .tier.best .sub-cta { color: #F3DCC4 !important; } .tier.best .save { color: #FFD9A0; } .tier.best .price .was { color: #E9C7A6; }
.tier.best .price .off { color: #1B2030 !important; } .tier.best .price .off::after { background: #F2C37A; }
.tier.best li::before { background-image: var(--tick2); }
.tier.best .btn.main::after { background: #F2C37A; }
@media (max-width: 420px) { .tier.best .cn { position: static; transform: rotate(-2deg); margin: 2px 0 4px; } }
@media (prefers-reduced-motion: reduce) { .btn.main { animation: none !important; } }

/* the gold button of the Complete card always has dark text */
.tier.best .btn.main, .tier.best .btn.main small { color: #1B2030 !important; opacity: 1; }
