/* Privacy check tools — extends marketing tokens */

/* Navbar opacity is owned by style-typography1.css (shared chrome). */

.check-page {
  /* Clear the fixed navbar so links like "All checks" stay clickable. */
  padding: calc(var(--nav-h) + 28px) 0 96px;
  min-height: 70vh;
}

.check-hero {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: left;
}

.check-hero .section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-hero h1 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.15rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--paper);
}

.check-hero p {
  margin: 0;
  color: var(--paper-muted);
  font-size: var(--text-body-lg);
  line-height: 1.6;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 28px 0 40px;
}

.check-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 21, 32, 0.95), rgba(11, 16, 24, 0.9));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.check-card:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
}

.check-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: var(--paper);
}

.check-card span {
  color: var(--paper-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.check-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 26px;
  margin-bottom: 22px;
}

.check-panel h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  color: var(--paper);
}

.check-panel .check-note {
  margin: 0 0 18px;
  color: var(--paper-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.check-actions .btn.is-busy {
  min-width: 10.5rem;
  cursor: wait;
  gap: 10px;
}

.check-status {
  display: block;
  margin-bottom: 14px;
  color: var(--paper-muted);
  font-size: 1rem;
  min-height: 1.4em;
}

.check-status[data-state="running"] { color: var(--cyan); }
.check-status[data-state="ok"] { color: #7dffb3; }
.check-status[data-state="warn"] { color: #ffcc66; }
.check-status[data-state="bad"] { color: #ff8f8f; }

.check-loading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  width: min(100%, 460px);
  padding: 14px 16px;
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 210, 255, 0.08), transparent 55%),
    rgba(5, 7, 10, 0.45);
}

.check-loading-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.check-loading-text {
  color: var(--cyan);
  font-weight: 600;
  line-height: 1.35;
}

.check-loading-meta {
  color: var(--paper-dim);
  font-size: var(--text-meta);
  font-variant-numeric: tabular-nums;
}

.check-progress {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.check-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #4f8cff);
  transition: width 0.25s ease;
}

.check-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 210, 255, 0.22);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: check-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.check-spinner--btn {
  width: 14px;
  height: 14px;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
}

@keyframes check-spin {
  to { transform: rotate(360deg); }
}

.check-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-result-list.is-loading {
  pointer-events: none;
}

.check-skeleton {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.35);
}

.check-skeleton-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 210, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.05) 90%
  );
  background-size: 200% 100%;
  animation: check-shimmer 1.1s ease-in-out infinite;
}

.check-skeleton-line--sm {
  width: 34%;
  height: 9px;
}

@keyframes check-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.check-result-list li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 7, 10, 0.35);
}

.check-result-list .label {
  color: var(--paper-dim);
  font-size: var(--text-kicker);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-result-list .value {
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  word-break: break-all;
}

.check-cta {
  margin-top: 32px;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background:
    radial-gradient(600px 180px at 10% 0%, rgba(0, 210, 255, 0.12), transparent),
    var(--panel);
}

.check-cta h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  color: var(--paper);
}

.check-cta p {
  margin: 0 0 16px;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.check-cta .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-explain {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 0 28px;
}

@media (min-width: 720px) {
  .check-explain {
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
  }
}

.check-explain h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--text-kicker);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.check-explain p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.check-outcome {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.4);
}

.check-outcome[hidden] {
  display: none !important;
}

.check-outcome[data-state="ok"] {
  border-color: rgba(125, 255, 179, 0.35);
}

.check-outcome[data-state="warn"] {
  border-color: rgba(255, 204, 102, 0.4);
}

.check-outcome[data-state="bad"] {
  border-color: rgba(255, 143, 143, 0.4);
}

.check-outcome h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--paper);
}

.check-outcome p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.check-back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan);
  text-decoration: none;
  font-size: var(--text-ui);
}

.check-back:hover { text-decoration: underline; }

.check-breach-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.check-turnstile {
  flex: 1 1 100%;
  min-height: 65px;
}

.check-breach-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--text-body);
}

.check-breach-form input:focus {
  outline: 2px solid rgba(0, 210, 255, 0.35);
  outline-offset: 1px;
}

.check-breach-form input:focus {
  outline: 2px solid rgba(0, 210, 255, 0.35);
  outline-offset: 1px;
}

.check-map-wrap {
  margin-top: 16px;
}

.check-map-label {
  margin: 0 0 8px;
  color: var(--paper-dim);
  font-size: var(--text-meta);
  line-height: 1.4;
}

.check-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 7, 10, 0.45);
}

.check-map-unavailable {
  display: none;
  margin-top: 12px;
  color: var(--paper-dim);
  font-size: 1rem;
}

.check-map-unavailable.is-visible {
  display: block;
}

/* Leaflet attribution readable on dark panels */
.check-map .leaflet-container {
  font: inherit;
  background: #0b1018;
}

.check-map .leaflet-control-attribution {
  background: rgba(5, 7, 10, 0.75);
  color: var(--paper-dim);
}

.check-map .leaflet-control-attribution a {
  color: var(--cyan);
}

@media (max-width: 640px) {
  .check-page { padding: calc(var(--nav-h) + 20px) 0 72px; }
  .check-panel { padding: 16px; }
  .check-map { height: 220px; }
}

/* Premium visual system — Check tools */
.check-page {
  background:
    radial-gradient(ellipse 60% 22% at 72% 0%, rgba(0, 71, 255, .13), transparent 72%),
    radial-gradient(ellipse 42% 20% at 4% 34%, rgba(0, 210, 255, .07), transparent 75%);
}
.check-hero {
  max-width: 920px; margin-bottom: 34px; padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(0, 210, 255, .17); border-radius: 24px;
  background: linear-gradient(125deg, rgba(0, 210, 255, .09), transparent 42%), rgba(11, 18, 29, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05);
}
.check-hero h1 { max-width: 13ch; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.065em; }
.check-hero p { max-width: 58ch; }
.check-grid { gap: 12px; margin-top: 12px; }
.check-card {
  position: relative; min-height: 184px; padding: 25px; overflow: hidden; border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 27, 42, .94), rgba(7, 12, 20, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.check-card::after {
  position: absolute; right: -22px; bottom: -31px; width: 92px; height: 92px; border: 1px solid rgba(0, 210, 255, .16);
  border-radius: 50%; content: ""; transition: transform .25s ease, border-color .25s ease;
}
.check-card:hover { transform: translateY(-5px); border-color: rgba(0, 210, 255, .52); box-shadow: 0 22px 44px rgba(0, 0, 0, .22); }
.check-card:hover::after { transform: scale(1.35); border-color: rgba(0, 210, 255, .42); }
.check-card strong { font-size: 1.18rem; letter-spacing: -.025em; }
.check-panel { border-radius: 20px; background: linear-gradient(145deg, rgba(16, 25, 39, .93), rgba(7, 12, 20, .95)); box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 18px 54px rgba(0, 0, 0, .16); }
.check-result-list li, .check-outcome { border-radius: 14px; background: rgba(4, 9, 16, .48); }
.check-cta { border-radius: 22px; background: linear-gradient(125deg, rgba(0, 210, 255, .1), rgba(0, 71, 255, .1) 52%, rgba(7, 12, 20, .96)); box-shadow: 0 26px 72px rgba(0, 0, 0, .22); }
@media (max-width: 640px) {
  .check-hero { padding: 26px 20px; border-radius: 18px; }
  .check-hero h1 { font-size: clamp(2.55rem, 13vw, 3.7rem); }
  .check-card { min-height: 0; padding: 21px; }
}
