/* ==========================================================================
 * Cassandra — bespoke landing components only.
 *
 * Everything structural (nav, hero, rails, persona card, section heads,
 * footer, reveal motion) comes from the shared ./zimac-landing.css sheet,
 * scoped by .agent-landing[data-agent="cassandra"] (the emerald theme in the
 * sheet's registry). This file keeps ONLY Cassandra's own demo figures:
 * the vault mark, the verdict lab, the Temporal Twin forecast card, the
 * capability cards, the iceberg teaser, and the mark showcase.
 * ========================================================================== */

.cassandra-page {
  /* Verdict semantics beyond the theme accent: caution and stop. */
  --warn: #fbbf24;
  --stop: #fb7185;
}

/* The v3 vault sits just right of center in the master. Keep that focal point
   stable as the shared family sheet tightens its crop on smaller viewports. */
.cassandra-page .ln-hero-art {
  z-index: -3;
  object-position: 58% 50%;
}

.cassandra-page .ln-hero-shade { z-index: -2; }

/* --------------------------------------------------------------------------
 * Cassandra's canonical mark: a real commercial vault door and locking wheel.
 * ------------------------------------------------------------------------ */
.vault-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--l-accent);
  filter: drop-shadow(0 5px 10px color-mix(in srgb, var(--l-accent) 22%, transparent));
}

.vault-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vault-mark circle,
.vault-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vault-mark .vault-frame {
  stroke-width: 3.4;
}

.vault-mark .vault-hub,
.vault-mark .vault-handle,
.vault-mark .vault-hinge {
  stroke: var(--l-accent-2);
  stroke-width: 2.7;
}

.vault-mark-sm {
  width: 30px;
  height: 30px;
}

.vault-mark-large {
  width: 108px;
  height: 108px;
}

/* Inside the persona-card chip the mark sits on the accent gradient. */
.ln-persona-mark .vault-mark {
  width: 24px;
  height: 24px;
  color: var(--l-ink);
  filter: none;
}

.ln-persona-mark .vault-mark .vault-hub,
.ln-persona-mark .vault-mark .vault-handle,
.ln-persona-mark .vault-mark .vault-hinge {
  stroke: currentColor;
}

.ln-finale .vault-mark {
  margin: 0 auto 26px;
}

/* --------------------------------------------------------------------------
 * Verdict lab — SHIP / REHEARSE / BLOCK examples.
 * ------------------------------------------------------------------------ */
.verdict-lab {
  overflow: hidden;
  border: 1px solid var(--l-border);
  border-radius: 18px;
  background:
    radial-gradient(50rem 28rem at 95% 0%, color-mix(in srgb, var(--l-accent) 8%, transparent), transparent 60%),
    var(--l-surface);
}

.verdict-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--l-border);
}

.verdict-tabs button {
  position: relative;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--l-border);
  color: var(--l-faint);
  background: rgba(255, 255, 255, 0.01);
  font: 700 11px/1 var(--l-mono);
  letter-spacing: 0.12em;
  cursor: pointer;
}

.verdict-tabs button:last-child {
  border-right: 0;
}

.verdict-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--l-accent);
  content: "";
  transition: transform 0.2s;
}

.verdict-tabs button.is-active {
  color: var(--l-text);
  background: color-mix(in srgb, var(--l-accent) 5%, transparent);
}

.verdict-tabs button.is-active::after {
  transform: scaleX(1);
}

.verdict-panel {
  padding: clamp(28px, 4vw, 46px);
}

.verdict-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--l-accent-2);
  font: 700 10px/1 var(--l-mono);
  letter-spacing: 0.1em;
}

.verdict-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.verdict-status.is-warn { color: var(--warn); }
.verdict-status.is-stop { color: var(--stop); }

.verdict-panel h3 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.verdict-panel > p {
  max-width: 760px;
  color: var(--l-muted);
}

.verdict-panel dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  margin: 28px 0 0;
  border-radius: 12px;
  background: var(--l-border);
}

.verdict-panel dl div {
  padding: 18px;
  background: var(--l-bg);
}

.verdict-panel dl div:first-child { border-radius: 11px 0 0 11px; }
.verdict-panel dl div:last-child { border-radius: 0 11px 11px 0; }

.verdict-panel dt {
  margin-bottom: 8px;
  color: var(--l-accent);
  font: 700 9px/1 var(--l-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verdict-panel dd {
  margin: 0;
  color: var(--l-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
 * Temporal Twin forecast card.
 * ------------------------------------------------------------------------ */
.twin-card {
  position: relative;
  padding: 24px;
  margin: 0;
  border: 1px solid var(--l-border2);
  border-radius: 16px;
  background: color-mix(in srgb, var(--l-shade) 85%, transparent);
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.twin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--l-border);
  font: 600 11px/1.4 var(--l-mono);
}

.twin-head span { color: var(--l-muted); }

.twin-head b {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  border-radius: 5px;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 6%, transparent);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.timeline {
  padding: 24px 0;
  border-bottom: 1px solid var(--l-border);
}

.timeline-label,
.timeline-notes {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.timeline-label {
  align-items: center;
  margin-bottom: 13px;
}

.timeline-label b {
  font-size: 12px;
}

.timeline-label span {
  color: var(--l-faint);
  font: 600 9px/1 var(--l-mono);
}

.timeline-track {
  display: flex;
  height: 10px;
  overflow: hidden;
  gap: 2px;
  border-radius: 99px;
  background: var(--l-surface2);
}

.timeline-track i {
  width: var(--w);
  background: linear-gradient(90deg, color-mix(in srgb, var(--l-accent) 35%, transparent), var(--l-accent));
}

.timeline-fail .timeline-track i {
  background: linear-gradient(90deg, color-mix(in srgb, var(--stop) 20%, transparent), color-mix(in srgb, var(--stop) 78%, transparent));
}

.timeline-notes {
  margin-top: 8px;
  color: var(--l-faint);
  font: 500 8px/1 var(--l-mono);
  text-transform: uppercase;
}

.exit-line {
  display: grid;
  gap: 5px;
  padding: 18px;
  margin-top: 22px;
  border: 1px solid color-mix(in srgb, var(--l-accent) 28%, transparent);
  border-left: 3px solid var(--l-accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--l-accent) 5.5%, transparent);
}

.exit-line span {
  color: var(--l-accent);
  font: 700 9px/1 var(--l-mono);
  letter-spacing: 0.12em;
}

.exit-line b {
  font-size: 12px;
}

.twin-card figcaption {
  padding-top: 16px;
  color: var(--l-faint);
  font: 500 9px/1.5 var(--l-mono);
}

/* --------------------------------------------------------------------------
 * Capability cards.
 * ------------------------------------------------------------------------ */
.cap-grid {
  display: grid;
  order: 2; /* ln-sect-full places the section head at order 1 */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap-card {
  position: relative;
  min-height: 320px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--l-border);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--l-surface2), var(--l-bg));
  transition: transform 0.25s var(--l-ease), border-color 0.25s;
}

.cap-card::after {
  position: absolute;
  right: -32px;
  bottom: -64px;
  width: 160px;
  height: 160px;
  border: 1px solid color-mix(in srgb, var(--l-accent) 10%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px color-mix(in srgb, var(--l-accent) 2.5%, transparent),
    0 0 0 52px color-mix(in srgb, var(--l-accent) 2%, transparent);
  content: "";
}

.cap-card:hover {
  transform: translateY(-5px);
  border-color: var(--l-border2);
}

.cap-index {
  display: block;
  margin-bottom: 64px;
  color: var(--l-accent);
  font: 700 11px/1 var(--l-mono);
}

.cap-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.cap-card p {
  color: var(--l-muted);
  font-size: 14px;
}

.cap-card small {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
  color: var(--l-faint);
  font: 600 9px/1.5 var(--l-mono);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
 * Iceberg teaser — deliberately ice-blue: it previews the /iceberg/
 * explainer, not the emerald theme.
 * ------------------------------------------------------------------------ */
.learn-card {
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #29475c;
  border-radius: 24px;
  background:
    radial-gradient(32rem 28rem at 82% 8%, rgba(96, 165, 250, 0.13), transparent 60%),
    linear-gradient(145deg, #0e1d26, #071014);
}

.iceberg-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.waterline {
  position: absolute;
  z-index: 3;
  top: 27%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8fd5f8, transparent);
  box-shadow: 0 0 16px rgba(143, 213, 248, 0.55);
}

.ice-top {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 170px;
  height: 98px;
  transform: translateX(-50%);
  clip-path: polygon(52% 0, 100% 100%, 0 100%);
  background: linear-gradient(145deg, #f5fbff, #8fd5f8 70%, #4f8fac);
  filter: drop-shadow(0 0 20px rgba(143, 213, 248, 0.22));
}

.ice-depth {
  position: absolute;
  top: 31%;
  right: 12%;
  bottom: 7%;
  left: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px;
  clip-path: polygon(7% 0, 93% 0, 74% 100%, 26% 100%);
  background: linear-gradient(180deg, rgba(143, 213, 248, 0.22), rgba(45, 212, 191, 0.05));
}

.ice-depth span {
  width: calc(72% - (var(--d) * 7%));
  padding: 9px 12px;
  border: 1px solid rgba(143, 213, 248, calc(0.45 - (var(--d) * 0.05)));
  border-radius: 6px;
  color: #afdff6;
  background: rgba(5, 16, 21, 0.62);
  font: 600 9px/1 var(--l-mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
 * Mark showcase.
 * ------------------------------------------------------------------------ */
.mark-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 280px;
  border: 1px solid var(--l-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--l-accent) 11%, transparent), transparent 58%),
    var(--l-shade);
}

/* --------------------------------------------------------------------------
 * Responsive + motion for the bespoke figures.
 * ------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .cassandra-page .ln-hero-art { object-position: 66% 50%; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: 280px; }
  .cap-index { margin-bottom: 45px; }
  .learn-card,
  .iceberg-visual { min-height: 430px; }
}

@media (max-width: 760px) {
  .cassandra-page .ln-hero-art { object-position: 79% 50%; }
  .mark-pair { min-height: 230px; gap: 18px; }
  .vault-mark-large { width: 86px; height: 86px; }
  .verdict-panel dl { grid-template-columns: 1fr; }
  .verdict-panel dl div:first-child { border-radius: 11px 11px 0 0; }
  .verdict-panel dl div:last-child { border-radius: 0 0 11px 11px; }
  .cap-card { padding: 24px; }
}

@media (max-width: 520px) {
  .verdict-tabs button { padding: 15px 7px; font-size: 9px; }
  .twin-card { padding: 18px; }
  .timeline-notes { font-size: 7px; }
  .learn-card,
  .iceberg-visual { min-height: 370px; }
  .mark-pair { gap: 12px; }
  .vault-mark-large { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .verdict-tabs button::after,
  .cap-card {
    transition-duration: 0.01ms;
  }
  .cap-card:hover {
    transform: none;
  }
}
