/* ==========================================================================
   Coven+ home (v3) — nocturnal, candlelit landing. Only active on the home
   route (body:has(.cvh)); every other page keeps the Mystic Classic look.
   ========================================================================== */
html[data-theme] body:not([data-area="admin"]):has(.cvh) {
  color-scheme: dark;
  --bg: #09080c; --bg-2: #100e15; --surface: #14111a; --surface-2: #1a1621; --surface-3: #221d2b;
  --line: rgba(239, 232, 220, .10); --line-2: rgba(239, 232, 220, .18);
  --text: #efe8dc; --muted: rgba(239, 232, 220, .64); --dim: rgba(239, 232, 220, .44);
  --gold: #d8b46a; --gold-soft: rgba(216, 180, 106, .14);
  background: #09080c; background-image: none;
}
body:has(.cvh) .sky { display: none; }
body:not([data-area="admin"]):has(.cvh) .nav { background: transparent; box-shadow: none; transition: background .3s, box-shadow .3s; }
body:not([data-area="admin"]):has(.cvh) .nav.cvh-solid { background: rgba(9, 8, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 -1px 0 rgba(239, 232, 220, .10); }
body:not([data-area="admin"]):has(.cvh) .nav .btn-primary { background: #d8b46a; border-color: #d8b46a; color: #140f07; }
body:not([data-area="admin"]):has(.cvh) .nav .btn-primary:hover { background: #f0d79c; border-color: #f0d79c; }
body:has(.cvh) .footer { margin-top: 0; border-color: var(--line); }
body:has(.cvh) .tabbar { background: rgba(9, 8, 12, .94); }

.cvh {
  --gold2: #f0d79c; --card: #14111a;
  --cvh-serif: "Noto Serif Display", "EB Garamond", Georgia, serif;
  --cvh-ease: cubic-bezier(.215, .61, .355, 1);
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
.cvh .wrap { max-width: 1240px; padding: 0 32px; }
.cvh :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.cvh-eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.cvh-eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--gold); }
.cvh h2 { font: 300 clamp(36px, 4.6vw, 64px)/1.06 var(--cvh-serif); letter-spacing: -.025em; margin: 18px 0 0; color: var(--text); }
.cvh h1 em, .cvh h2 em { font-style: italic; color: var(--gold2); }
.cvh-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--sans); border: 1px solid transparent; transition: transform .25s var(--cvh-ease), background .25s, border-color .25s; cursor: pointer; }
.cvh-btn svg.i { width: 16px; height: 16px; transition: transform .3s var(--cvh-ease); }
.cvh-btn:hover svg.i { transform: translateX(3px); }
.cvh-gold { background: var(--gold); color: #140f07; }
.cvh-gold:hover { background: var(--gold2); transform: translateY(-1px); }
.cvh-ghost { border-color: var(--line-2); color: var(--text); background: rgba(9, 8, 12, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cvh-ghost:hover { border-color: var(--text); }
.cvh-link { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--muted); transition: color .2s; white-space: nowrap; }
.cvh-link:hover { color: var(--text); }
.cvh-link svg.i { width: 14px; height: 14px; }

/* hero */
.cvh-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.cvh-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; z-index: -2; opacity: 0; transition: opacity 1.4s var(--cvh-ease); transform: scale(1.06); animation: cvhSettle 2.4s var(--cvh-ease) forwards; }
.cvh-hero video.on { opacity: 1; }
@keyframes cvhSettle { to { transform: scale(1); } }
.cvh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(9, 8, 12, .88) 0%, rgba(9, 8, 12, .55) 32%, rgba(9, 8, 12, 0) 62%),
  radial-gradient(60% 50% at 50% 0%, rgba(9, 8, 12, .85), transparent 70%),
  linear-gradient(180deg, rgba(9, 8, 12, .55) 0%, rgba(9, 8, 12, .05) 35%, rgba(9, 8, 12, .35) 62%, #09080c 100%); }
.cvh-poster { position: absolute; inset: 0; z-index: -3; background: radial-gradient(40% 30% at 60% 60%, rgba(216, 180, 106, .18), transparent 70%), radial-gradient(70% 60% at 50% 100%, #1b1424, #09080c); background-size: cover; background-position: 62% 70%; }
.cvh-hero-in { width: 100%; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 48px; }
.cvh-hero h1 { font: 300 clamp(52px, 8vw, 128px)/.96 var(--cvh-serif); letter-spacing: -.035em; margin: 22px 0 0; max-width: 11ch; color: var(--text); }
.cvh-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.cvh-hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: cvhRise 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
.cvh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 36px; }
.cvh-lead { max-width: 450px; font-size: 17px; color: var(--muted); margin: 0; }
.cvh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cvh-stats { display: flex; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(9, 8, 12, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); flex-shrink: 0; }
.cvh-stats > div { padding: 18px 26px; border-left: 1px solid var(--line); }
.cvh-stats > div:first-child { border-left: 0; }
.cvh-stats b { display: block; font: 300 34px/1 var(--cvh-serif); letter-spacing: -.02em; color: var(--text); }
.cvh-stats span { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.cvh-online { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cvh-online i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.cvh-online i.off { background: var(--dim); box-shadow: none; }
.cvh-online a { color: var(--text); font-weight: 500; }
.cvh-in { opacity: 0; transform: translateY(22px); animation: cvhUp .9s var(--cvh-ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes cvhUp { to { opacity: 1; transform: none; } }
@keyframes cvhRise { to { transform: none; } }

/* manifesto */
.cvh-manifesto { padding: 170px 0 150px; }
.cvh-manifesto p { font: 300 clamp(30px, 3.9vw, 56px)/1.2 var(--cvh-serif); letter-spacing: -.02em; margin: 28px 0 0; max-width: 1080px; }
.cvh-manifesto .w { color: rgba(239, 232, 220, .16); transition: color .35s; }
.cvh-manifesto .w.lit { color: var(--text); }
.cvh-manifesto .w.g.lit { color: var(--gold2); font-style: italic; }

/* blocks */
.cvh-block { padding: 120px 0; border-top: 1px solid var(--line); }
.cvh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; }
.cvh-sub { max-width: 540px; color: var(--muted); margin: 18px 0 0; }
.cvh-rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--cvh-ease), transform .9s var(--cvh-ease); transition-delay: calc(var(--d, 0) * 1ms); }
.cvh-rv.is-in { opacity: 1; transform: none; }
.cvh-empty { color: var(--dim); padding: 24px; margin: 0; }

/* paths */
.cvh-paths { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px; }
.cvh-path { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; transition: border-color .3s, transform .4s var(--cvh-ease); color: var(--text); }
.cvh-path::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(216, 180, 106, .16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cvh-path:hover { border-color: rgba(216, 180, 106, .45); transform: translateY(-4px); }
.cvh-path:hover::before { opacity: 1; }
.cvh-path .cvh-glyph { width: 54px; height: 54px; color: var(--gold); margin-bottom: auto; display: grid; place-items: start; }
.cvh-path .cvh-glyph svg { width: 54px !important; height: 54px !important; }
.cvh-path .num { position: absolute; top: 24px; right: 24px; font-size: 13px; color: var(--dim); }
.cvh-path h3 { font: 300 32px/1.05 var(--cvh-serif); letter-spacing: -.02em; margin: 0 0 6px; color: var(--text); }
.cvh-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--muted); width: max-content; max-width: 100%; }
.cvh-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.cvh-badge svg.i { width: 12px; height: 12px; }
.cvh-courses { margin-top: 18px; }

/* forum */
.cvh-forum { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.cvh-threads { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.cvh-thread { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); transition: background .25s; color: var(--text); }
.cvh-thread:first-child { border-top: 0; }
.cvh-thread:hover { background: rgba(239, 232, 220, .035); }
.cvh-thread:hover .t { color: var(--gold2); }
.cvh .av.cvh-av { width: 44px; height: 44px; box-shadow: none; background: linear-gradient(135deg, #c9b6f0, #6a4fa8); color: #140f07; overflow: hidden; }
.cvh .av.cvh-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cvh-thread .t { font: 400 19px/1.3 var(--cvh-serif); transition: color .2s; overflow-wrap: anywhere; }
.cvh-meta { font-size: 13px; color: var(--dim); margin-top: 3px; }
.cvh-meta b { font-weight: 500; color: var(--muted); }
.cvh-rep { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.cvh-rep svg.i { width: 13px; height: 13px; }
.cvh-top { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; min-height: 440px; color: var(--text); background:
  radial-gradient(70% 55% at 75% 18%, rgba(216, 180, 106, .28), transparent 65%),
  radial-gradient(60% 60% at 10% 100%, rgba(120, 80, 170, .28), transparent 70%), #100e15; }
.cvh-card-art { position: absolute; top: 34px; right: 34px; width: 118px; height: 186px; border: 1px solid rgba(216, 180, 106, .55); border-radius: 10px; transform: rotate(8deg); display: grid; place-items: center; color: var(--gold); background: rgba(9, 8, 12, .4); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transition: transform .6s var(--cvh-ease); }
.cvh-top:hover .cvh-card-art { transform: rotate(3deg) translateY(-6px); }
.cvh-card-art::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(216, 180, 106, .25); border-radius: 6px; }
.cvh-card-art svg { width: 56px; height: 56px; }
.cvh-top h3 { font: 300 44px/1.02 var(--cvh-serif); letter-spacing: -.025em; margin: 16px 0 6px; color: var(--text); overflow-wrap: anywhere; }
.cvh-top .nums { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin: 14px 0 24px; }
.cvh-top .nums b { color: var(--text); font-weight: 500; }

/* articles */
.cvh-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cvh-art { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); transition: border-color .3s, transform .4s var(--cvh-ease); color: var(--text); }
.cvh-art:hover { border-color: var(--line-2); transform: translateY(-4px); }
.cvh-art .cover { aspect-ratio: 16/10; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 60%, rgba(216, 180, 106, .3), transparent 70%), linear-gradient(160deg, #221a14, #0e0a08); }
.cvh-art .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--cvh-ease); }
.cvh-art .cover > svg { width: 100%; height: 100%; }
.cvh-art:hover .cover img { transform: scale(1.05); }
.cvh-art .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cvh-art .tag { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cvh-art h3 { font: 400 25px/1.15 var(--cvh-serif); letter-spacing: -.015em; margin: 12px 0 10px; color: var(--text); }
.cvh-art p { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cvh-art .by { margin-top: auto; font-size: 13px; color: var(--dim); }

/* plans */
.cvh-plans-wrap { text-align: center; }
.cvh-plans-wrap .cvh-sub { margin: 18px auto 0; }
.cvh-plans { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; margin-top: 56px; text-align: left; }
.cvh-plan { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); display: flex; flex-direction: column; transition: transform .4s var(--cvh-ease), border-color .3s; }
.cvh-plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.cvh-plan.mid { background: linear-gradient(180deg, rgba(216, 180, 106, .12), rgba(216, 180, 106, 0) 60%), var(--card); border-color: rgba(216, 180, 106, .4); }
.cvh-plan .tier { display: flex; align-items: center; gap: 10px; font: 500 14px/1 var(--sans); color: var(--muted); }
.cvh-plan .tier svg.i { width: 20px; height: 20px; color: var(--gold); }
.cvh-plan .price { font: 300 60px/1 var(--cvh-serif); letter-spacing: -.04em; margin: 30px 0 4px; color: var(--text); }
.cvh-plan .price small { font: 400 15px/1 var(--sans); letter-spacing: 0; color: var(--dim); margin-left: 6px; }
.cvh-plan .was { font-size: 14px; color: var(--dim); text-decoration: line-through; }
.cvh-plan .deal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold); margin-top: 12px; }
.cvh-plan .deal svg.i { width: 14px; height: 14px; }
.cvh-plan .note { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; margin: 18px 0 28px; padding-top: 18px; border-top: 1px solid var(--line); min-height: 19px; }
.cvh-plan .note svg.i { width: 14px; height: 14px; color: var(--gold); }
.cvh-plan .cvh-btn { justify-content: center; margin-top: auto; }
.cvh-plans-foot { margin-top: 28px; font-size: 14px; color: var(--dim); }
.cvh-plans-foot a { color: var(--gold); border-bottom: 1px solid rgba(216, 180, 106, .4); }

/* join */
.cvh-join { position: relative; margin: 0 32px 32px; border-radius: 28px; overflow: hidden; min-height: 560px; display: grid; place-items: center; text-align: center; isolation: isolate; border: 1px solid var(--line); padding: 60px 24px; }
.cvh-join video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.cvh-join video.on { opacity: .9; }
.cvh-join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 50% 52%, rgba(9, 8, 12, .78), rgba(9, 8, 12, .45) 70%, rgba(9, 8, 12, .8)); }
.cvh-join .poster { position: absolute; inset: 0; z-index: -3; background: radial-gradient(50% 60% at 50% 60%, #3a2a5a, #0d0b14); background-size: cover; background-position: center; }
.cvh-join h2 { font-size: clamp(42px, 6vw, 92px); max-width: 13ch; margin: 18px auto 0; }
.cvh-join p { max-width: 520px; margin: 22px auto 0; color: rgba(239, 232, 220, .82); }
.cvh-join .cvh-cta { justify-content: center; margin-top: 34px; }

/* responsive */
@media (max-width: 1100px) {
  .cvh-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cvh-forum { grid-template-columns: minmax(0, 1fr); }
  .cvh-top { min-height: 360px; }
  .cvh-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .cvh-arts, .cvh-plans { grid-template-columns: minmax(0, 1fr); }
  .cvh-head { flex-direction: column; align-items: flex-start; }
  .cvh-block { padding: 90px 0; }
}
@media (max-width: 640px) {
  .cvh .wrap { padding: 0 20px; }
  .cvh-hero video, .cvh-poster { object-position: 62% 0%; background-position: 62% 0%; }
  .cvh-hero::before { background: linear-gradient(0deg, #09080c 0%, rgba(9, 8, 12, .88) 48%, rgba(9, 8, 12, .35) 72%, rgba(9, 8, 12, .6) 100%); }
  .cvh-hero h1 { font-size: 50px; }
  .cvh-hero-in { padding-bottom: calc(var(--tab-h) + 24px + var(--safe-b)); }
  .cvh-row > div { width: 100%; }
  body:has(.cvh) .footer { padding-bottom: calc(var(--tab-h) + 40px + var(--safe-b)); }
  .cvh-cta { flex-direction: column; }
  .cvh-cta .cvh-btn { width: 100%; justify-content: center; }
  .cvh-stats { width: 100%; }
  .cvh-stats > div { flex: 1; padding: 14px 16px; }
  .cvh-stats b { font-size: 26px; }
  .cvh-paths { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cvh-path { min-height: 210px; padding: 20px; }
  .cvh-path .cvh-glyph, .cvh-path .cvh-glyph svg { width: 40px !important; height: 40px !important; }
  .cvh-path h3 { font-size: 24px; }
  .cvh-path:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cvh-thread { grid-template-columns: 38px minmax(0, 1fr); padding: 16px; }
  .cvh .av.cvh-av { width: 38px; height: 38px; }
  .cvh-rep { display: none; }
  .cvh-thread .t { font-size: 17px; }
  .cvh-manifesto { padding: 110px 0 100px; }
  .cvh-join { margin: 0 12px 12px; min-height: 520px; }
  .cvh-join .cvh-cta .cvh-btn { width: 100%; }
  .cvh-top h3 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .cvh *, .cvh *::before { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .cvh-in, .cvh-rv { opacity: 1; transform: none; }
  .cvh-hero h1 .ln > span { transform: none; }
}

/* plans: full cards (free + paid, features, subscribe) */
.cvh-plans { align-items: stretch; }
.cvh-plan { padding: 30px 26px; }
.cvh-plan .flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; background: #d8b46a; color: #140f07; font: 600 11.5px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; }
.cvh-plan .flag.cur { background: #4ade80; }
.cvh-plan .flag svg.i { width: 13px; height: 13px; }
.cvh-plan.cur { border-color: rgba(74, 222, 128, .45); }
.cvh-plan .tier { flex-wrap: wrap; }
.cvh-plan .vip { margin-left: auto; padding: 4px 9px; border-radius: 999px; font-size: 11px; color: var(--gold2); border: 1px solid color-mix(in srgb, var(--bc) 50%, transparent); background: color-mix(in srgb, var(--bc) 14%, transparent); }
.cvh-plan .price { margin: 26px 0 0; font-size: 52px; }
.cvh-plan .deal { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gold2); margin-top: 10px; }
.cvh-plan .deal s { color: var(--dim); }
.cvh-plan .pnote { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.cvh-plan .pcta { margin: 22px 0 0; }
.cvh-plan .pcta .cvh-btn { width: 100%; justify-content: center; height: auto; min-height: 48px; padding: 12px 18px; text-align: center; line-height: 1.25; }
.cvh-plan .pcta [aria-disabled="true"] { pointer-events: none; opacity: .75; }
.cvh-plan .incl { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cvh-plan ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cvh-plan li { display: flex; gap: 10px; align-items: flex-start; }
.cvh-plan li svg.i { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 1px; }
.cvh-plan .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--gold2); }
.cvh-plan .more svg.i { width: 13px; height: 13px; }
.cvh-plan .note { margin: auto 0 0; padding-top: 18px; border-top: 0; min-height: 0; }
.cvh-plan ul + .note, .cvh-plan .more + .note { margin-top: 22px; }
@media (max-width: 1100px) { .cvh-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; } }
@media (max-width: 640px) { .cvh-plans { grid-template-columns: minmax(0, 1fr); } }
