/* Complyvane additions to the shared 3D styling. */
.mark-by { font-size: 12px; font-weight: 500; opacity: .75; margin-left: 2px; }
.panel[data-explain] { cursor: pointer; }
button.panel.chip { text-align: left; font: inherit; border: 0; cursor: pointer; }
.explain-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--accent); cursor: pointer; }
.card.screen { width: 380px; }
.card.screen img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 0 0 14px; box-shadow: 0 10px 30px -12px rgba(4,10,20,.45); }
.card.plan .price { font-size: 30px; font-weight: 600; color: var(--ink); margin: 6px 0 8px; }
.card.plan .price span { font-size: 15px; font-weight: 400; color: var(--muted); }
.std { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.std li { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--rule); }
.std b { display: block; color: var(--ink); }
.std span { font-size: 13px; color: var(--muted); }
.quote.long h3 { margin-bottom: 10px; }

/* The reading panel */
html.x-open { overflow: hidden; }
dialog.explain { width: min(780px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text);
  box-shadow: 0 2px 0 var(--accent) inset, 0 40px 120px -30px rgba(4,10,20,.75); overflow: hidden; font-family: var(--font); }
dialog.explain::backdrop { background: rgba(8,16,28,.58); backdrop-filter: blur(4px); }
dialog.explain[open] { display: flex; flex-direction: column; animation: x-in .22s ease-out; }
@keyframes x-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.explain[open] { animation: none; } }
.x-close { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 9px 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 600 14px var(--font); cursor: pointer; }
.x-close:hover, .x-close:focus-visible { background: var(--accent); }
.x-body { overflow: auto; overscroll-behavior: contain; padding: 34px 36px 30px; }
.x-body .x-shot { display: block; width: 100%; height: auto; border-radius: 14px; margin: 26px 0 22px; box-shadow: 0 14px 40px -18px rgba(4,10,20,.5); }
.x-body h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin: 0 90px 10px 0; }
.x-body h3 { font-size: 18px; color: var(--ink); margin: 22px 0 10px; }
.x-body p { line-height: 1.6; color: var(--muted); margin: 0 0 12px; }
.x-body .x-intro { font-size: 18px; color: var(--text); }
.x-steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; border-radius: 14px; background: #f3f6f8; line-height: 1.55; }
.x-steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.x-body .ticks { margin: 0 0 8px; }
.x-body .note { font-size: 14px; margin-top: 14px; }
.x-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.x-more .btn.small { padding: 9px 16px; font-size: 14px; }
.x-body .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 640px) { .x-body { padding: 26px 20px 22px; } .x-body h2 { font-size: 24px; margin-right: 80px; } .card.screen { width: 300px; } }
/* Complyvane has more menu items than Clause Ten: switch to the compact menu below 1200px so they never wrap. */
.bar nav a { white-space: nowrap; }
@media (max-width: 1199px) {
  .menu-toggle { display: inline-block; }
  .bar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; background: var(--ink); max-height: calc(100vh - 64px); overflow-y: auto; }
  .bar.open nav { display: flex; }
  .bar nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .bar nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .bar nav a { display: block; width: 100%; text-align: left; padding: 13px 0; font-size: 17px; }
  .bar nav .btn { margin-top: 16px; text-align: center; }
}
