/* ==========================================================================
   trykildaris.com: X-Ray, in the shared Kildaris system (system.css +
   lander.css). This file adds the site's light (violet led), the lens over
   the sample files, the audit layout, and the exposure self-check pop-up.
   ========================================================================== */

:root {
  --accent-a: #c4b5fd;
  --accent-b: #a78bfa;
  --accent-c: #f0abfc;
  --vi: #a78bfa;
  --vi-hi: #c4b5fd;
  --hot: #f0abfc;
  --scan: #67e8f9;
}

/* --- the X-Ray panel -------------------------------------------------------- */

.tpanel { max-width: 1060px; }
.xray { --lr: 150px; position: relative; }
.xask {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 20px; border-radius: 18px;
  background: rgba(5, 6, 10, 0.5); border: 1px solid rgba(196, 181, 253, 0.28);
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.01em;
}
.xdot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 38%, #fff, var(--vi-hi) 50%, var(--hot));
  box-shadow: 0 0 14px rgba(196, 181, 253, 0.9);
}
.xtext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xcaret { width: 2px; height: 22px; flex: none; margin-left: -8px; background: var(--ink); animation: xCaret 1s steps(1) infinite; }
@keyframes xCaret { 50% { opacity: 0; } }

.xqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xq {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  font: 400 0.88rem var(--sans); cursor: pointer;
  background: rgba(236, 238, 245, 0.03); color: var(--ink-2); border: 1px solid var(--edge-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s;
}
.xq:hover { border-color: rgba(196, 181, 253, 0.6); color: var(--ink); }
.xq[aria-pressed="true"] {
  background: linear-gradient(135deg, #ede9fe, var(--vi-hi)); color: #05060a; border-color: transparent;
  box-shadow: 0 0 24px -6px rgba(196, 181, 253, 0.8);
}

.xlens {
  position: relative; margin-top: 16px;
  height: clamp(380px, 39vw, 540px);
  border-radius: 22px; overflow: hidden;
  background: rgba(5, 6, 10, 0.55); border: 1px solid var(--edge);
  cursor: crosshair; touch-action: pan-y;
}
.xgrid {
  position: absolute; inset: 22px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr; gap: 14px;
}
.xblur { filter: blur(7px); opacity: 0.5; }
.xf {
  border-radius: 14px; padding: 14px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: rgba(236, 238, 245, 0.04); border: 1px solid rgba(236, 238, 245, 0.06);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.xblur .xf { background: rgba(236, 238, 245, 0.07); }
.xn { font-size: 13px; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }
.xsharp .xn { color: var(--ink-3); }
.xbar { height: 8px; width: 60%; border-radius: 4px; background: rgba(236, 238, 245, 0.12); }
.xchip {
  align-self: flex-start; max-width: 100%;
  padding: 3px 9px; border-radius: 999px;
  font: 500 10.5px/1.35 var(--sans);
  background: rgba(240, 171, 252, 0.16); color: #fae8ff; border: 1px solid rgba(240, 171, 252, 0.35);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.xchip:empty { display: none; }
.xf.hit { background: rgba(196, 181, 253, 0.14); border-color: var(--vi-hi); box-shadow: 0 0 30px rgba(196, 181, 253, 0.35); }
.xf.hit .xn { color: #fff; font-weight: 500; }
.xf.hit .xchip { opacity: 1; transform: none; }

.xsharp {
  position: absolute; inset: 0; background: rgba(9, 8, 22, 0.96);
  clip-path: circle(var(--lr) at var(--lx, 30%) var(--ly, 30%));
}
.xscan {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.1), transparent);
  animation: xScan 3.5s linear infinite;
}
@keyframes xScan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.xring {
  position: absolute; left: 0; top: 0;
  width: calc(var(--lr) * 2); height: calc(var(--lr) * 2);
  border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(236, 233, 254, 0.9);
  box-shadow: 0 0 50px rgba(196, 181, 253, 0.5), inset 0 0 40px rgba(196, 181, 253, 0.25),
              0 0 0 10px rgba(196, 181, 253, 0.06);
  transform: translate(calc(var(--lx, 30%) - var(--lr)), calc(var(--ly, 30%) - var(--lr)));
}
.xnote {
  position: absolute; right: 16px; bottom: 12px;
  font-size: 11px; color: var(--ink-3);
  background: rgba(5, 6, 10, 0.75); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--edge);
}

@media (max-width: 640px) {
  .xray { --lr: 92px; }
  .xask { font-size: 1.02rem; min-height: 54px; padding: 0 14px; }
  .xtext { white-space: normal; line-height: 1.3; padding-block: 8px; }
  .xq { font-size: 0.8rem; padding: 0 12px; }
  .xlens { height: 400px; }
  .xgrid { inset: 14px 14px 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .xf:nth-child(n+10) { display: none; }
  .xf { padding: 10px; border-radius: 10px; }
  .xn { font-size: 11px; }
  .xchip { font-size: 9px; padding: 2px 6px; }
  .xnote { left: 14px; right: auto; bottom: 10px; font-size: 9.5px; }
}

/* --- sections ------------------------------------------------------------------ */

.tplat:last-child { border-color: rgba(240, 171, 252, 0.3); }
.tplat:last-child .card-k { color: var(--hot); }
.tstory li:last-child .n { border-color: var(--hot); box-shadow: 0 0 0 6px var(--bg), 0 0 36px -4px var(--hot); }

.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 16px; align-items: start; }
.covers { list-style: none; margin: 0; padding: 0; }
.audit-card { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: 26px; display: flex; flex-direction: column; gap: 0.6rem;
  background: linear-gradient(170deg, rgba(196, 181, 253, 0.12), rgba(12, 14, 22, 0.55) 60%);
  border-color: rgba(196, 181, 253, 0.3); }
.ac-v {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); letter-spacing: -0.035em; line-height: 1; white-space: nowrap;
}
.ac-v small { font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.audit-card > p { color: var(--ink-2); font-size: 0.95rem; font-weight: 300; line-height: 1.6; }
.audit-card ul { list-style: none; padding: 0; margin: 0.8rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.audit-card li { position: relative; padding-left: 24px; font-size: 0.93rem; line-height: 1.5; }
.audit-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.4em; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff, var(--vi-hi) 50%, var(--hot));
  box-shadow: 0 0 10px rgba(196, 181, 253, 0.7);
}
.audit-card .btn { justify-content: center; }
@media (max-width: 900px) { .audit { grid-template-columns: minmax(0, 1fr); } }

.tcheck-in {
  max-width: 900px; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3.4rem);
  border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem;
  background: radial-gradient(500px 300px at 50% 0%, rgba(196, 181, 253, 0.16), transparent 70%), rgba(14, 16, 26, 0.5);
}
.tcheck-in h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); max-width: 16ch; }
.tcheck-meter { position: relative; width: 96px; height: 96px; }
.tcheck-meter svg { width: 100%; height: 100%; }
.tcheck-meter circle { fill: none; stroke: rgba(236, 238, 245, 0.1); stroke-width: 8; }
.tcheck-meter .arc { stroke: var(--vi-hi); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 120; animation: tArc 6s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(196, 181, 253, 0.8)); }
.tcheck-meter span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; }
@keyframes tArc { 50% { stroke-dashoffset: 40; stroke: var(--hot); } }

/* --- self-check pop-up -------------------------------------------------------- */

.ck-back {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 20px;
  background: rgba(3, 4, 7, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.ck-back[hidden] { display: none; }
.ck-back.open { opacity: 1; }
.ck {
  position: relative; width: min(1080px, 100%); max-height: calc(100dvh - 40px);
  display: flex; border-radius: 28px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--edge-2);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 90px -30px rgba(196, 181, 253, 0.4);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transform: translateY(18px) scale(0.97); filter: blur(6px);
  transition: transform 0.52s var(--ease-out), filter 0.52s var(--ease-out);
  outline: none;
}
.ck-back.open .ck { transform: none; filter: none; }
.ck-l { flex: 1; min-width: 0; padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; overflow-y: auto; }
.ck-l h2 { margin-top: 14px; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); max-width: 16ch; }
.ck-intro { margin: 12px 0 8px; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.ck-rows { width: 100%; }
.ck-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 70px; padding: 12px 0; border-bottom: 1px solid var(--edge);
}
.ck-q { font-size: 0.98rem; line-height: 1.45; max-width: 400px; }
.ck-yn { display: flex; gap: 6px; flex: none; }
.ck-yn button {
  min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 999px;
  font: 400 0.88rem var(--sans); cursor: pointer;
  background: rgba(236, 238, 245, 0.03); color: var(--ink-2); border: 1px solid var(--edge-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s;
}
.ck-yn button:hover { border-color: rgba(196, 181, 253, 0.6); color: var(--ink); }
.ck-yn button[aria-pressed="true"] { background: linear-gradient(135deg, #ede9fe, var(--vi-hi)); color: #05060a; border-color: transparent; }
.ck-foot { margin-top: 26px; font-size: 0.78rem; color: var(--ink-4); }
.ck-r {
  width: 380px; flex: none; padding: 44px 36px 36px;
  background: radial-gradient(420px 360px at 50% 30%, rgba(196, 181, 253, 0.16), transparent 70%), rgba(5, 6, 10, 0.5);
  border-left: 1px solid var(--edge);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ck-meter { position: relative; width: 220px; height: 220px; margin-top: 10px; flex: none; }
.ck-meter svg { width: 100%; height: 100%; }
.ck-track { fill: none; stroke: rgba(236, 238, 245, 0.08); stroke-width: 12; }
.ck-arc {
  fill: none; stroke: #67e8f9; stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 578; stroke-dashoffset: 578;
  transition: stroke-dashoffset 0.6s var(--ease-out), stroke 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.6));
}
.ck-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ck-n { font-family: var(--display); font-weight: var(--display-weight); font-size: 68px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ck-k { margin-top: 6px; font-size: 0.76rem; color: var(--ink-3); }
.ck-band { margin-top: 24px; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.7rem; color: #67e8f9; }
.ck-adv { margin-top: 10px; font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.ck-cta { margin-top: auto; padding-top: 24px; width: 100%; }
.ck-cta .btn { width: 100%; justify-content: center; font-size: 0.9rem; padding-inline: 1em; }
.ck-cta p { margin: 12px auto 0; font-size: 0.82rem; color: var(--ink-3); }
.ck-note { font-size: 0.85rem; color: var(--vi-hi); }
html.ck-lock { overflow: hidden; }

@media (max-width: 900px) {
  .ck-back { padding: 0; align-items: end; }
  .ck { flex-direction: column; overflow-y: auto; max-height: 100dvh; border-radius: 26px 26px 0 0; }
  .ck-l { overflow: visible; padding: 32px 22px 8px; }
  .ck-l h2 { padding-right: 52px; }
  .ck-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ck-yn button { min-width: 0; flex: 1; }
  .ck-yn { width: 100%; }
  .ck-r { width: auto; border-left: 0; border-top: 1px solid var(--edge); padding: 28px 22px 30px; }
  .ck-meter { width: 160px; height: 160px; }
  .ck-n { font-size: 50px; }
  .ck-band { margin-top: 18px; }
  .ck-x { right: 12px; top: 12px; }
}
