/* Security inspection section (security.html) and security log (security-log.html).
   Marketing theme: warm cream, ink #1C1917, green #7DB87C for "Pass". Satoshi comes from the page.
   All copy and numbers are rendered from the SECURITY_INSPECTION data block at the top of each page. */

.inspect-section { padding: 72px 0 24px; }
.inspect-section .container { max-width: 1080px; }

.inspect-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 48px;
  border: 1px solid #dfe7d8; border-radius: 30px;
  background:
    radial-gradient(circle at 94% 6%, rgba(125, 184, 124, 0.22), transparent 44%),
    radial-gradient(circle at 2% 100%, rgba(123, 167, 201, 0.14), transparent 48%),
    linear-gradient(145deg, #f6f9f2 0%, #faf8f5 100%);
  box-shadow: 0 4px 8px #1c191704, 0 22px 55px rgba(57, 48, 40, 0.07);
}

.inspect-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }

.inspect-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.inspect-shield {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, #8fc98e, #6aa86a);
  box-shadow: 0 10px 22px rgba(125, 184, 124, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.inspect-shield svg { width: 28px; height: 28px; }
.inspect-kicker { color: #3a6f3f; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }

.inspect-panel h2 {
  margin: 0 0 12px; color: var(--text); font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700; line-height: 1.02; letter-spacing: -2px;
}
.inspect-panel h2 span { display: block; }
.inspect-date { margin: 0 0 10px; color: var(--text); font-size: 17px; font-weight: 600; }
.inspect-promise { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 440px; }

.inspect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.inspect-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
}
.inspect-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.inspect-btn-primary { background: #1c1917; color: #fff; }
.inspect-btn-secondary { background: rgba(255, 255, 255, 0.7); color: #1c1917; border-color: #d6d0c8; }
@media (hover: hover) {
  .inspect-btn { transition: background-color 0.2s ease, border-color 0.2s ease; }
  .inspect-btn-primary:hover { background: #3a3430; }
  .inspect-btn-secondary:hover { border-color: #1c1917; background: #fff; }
}

/* big simple numbers: fixed row heights so nothing moves after first paint */
.inspect-stats {
  display: grid; margin: 0; padding: 0; list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 22px rgba(57, 48, 40, 0.05);
}
.inspect-stat { display: flex; align-items: center; gap: 16px; min-height: 80px; padding: 18px 26px; border-bottom: 1px solid #ece7e0; }
.inspect-stat:last-child { border-bottom: 0; }
.inspect-stat b {
  flex: 0 0 auto; width: 156px; color: var(--text); font-size: 44px; font-weight: 700; line-height: 1;
  letter-spacing: -1.6px; font-variant-numeric: tabular-nums;
}
.inspect-stat b i { font-style: normal; color: #a8a29e; font-weight: 500; font-size: 0.6em; letter-spacing: -0.5px; margin: 0 2px; }
.inspect-stat span { color: var(--text-2); font-size: 15px; font-weight: 600; line-height: 1.3; }

/* areas, each with a green Pass */
.inspect-areas { margin-top: 36px; padding-top: 28px; border-top: 1px solid #e4e8dd; }
.inspect-areas-label { margin: 0 0 14px; color: #6b655f; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.area-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 16px; background: rgba(255, 255, 255, 0.78);
  color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 4px 14px rgba(57, 48, 40, 0.04);
}
.pass {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap;
  min-height: 30px; padding: 0 12px 0 9px; border-radius: 999px;
  background: #e5f1e1; color: #2f6234; border: 1px solid #cfe3ca;
  font-size: 13px; font-weight: 700; line-height: 1;
}
.pass svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* automated tests: a quieter sibling card under the inspection, with its own big number */
.inspect-tests:empty { display: none; }
.inspect-tests {
  margin-top: 20px; padding: 36px 48px 40px;
  border: 1px solid #ece7e0; border-radius: 26px; background: rgba(255, 255, 255, 0.62);
}
.tests-head { display: flex; align-items: center; gap: 24px; }
.tests-num {
  flex: 0 0 auto; color: var(--text); font-size: clamp(44px, 6vw, 60px); font-weight: 700; line-height: 1;
  letter-spacing: -2px; font-variant-numeric: tabular-nums;
}
.tests-copy { min-width: 0; }
.tests-copy h3 { margin: 0 0 4px; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25; }
.tests-copy p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.tests-list { margin-top: 26px; }
.inspect-tests .area-item { min-height: 52px; background: rgba(250, 248, 245, 0.85); border-color: #ece7e0; box-shadow: none; font-size: 15px; }
.inspect-noscript { margin: 0; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.5; }

/* method and not-a-certification: small and quiet */
.inspect-quiet { margin: 28px 0 0; color: #6b655f; font-size: 13px; line-height: 1.7; }
.inspect-quiet { padding: 0 6px; }
.inspect-section > .container > .inspect-quiet { margin-top: 24px; }
.inspect-quiet a {
  color: var(--text); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(125, 184, 124, 0.7); text-underline-offset: 3px;
}

/* ---- security log page ---- */
.log-wrap { padding: 48px 0 24px; }
.log-wrap .container { max-width: 1080px; }
.log-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.log-card {
  padding: 28px 32px 30px;
  border: 1px solid #e7e2dc; border-radius: 26px; background: #fff;
  box-shadow: 0 4px 8px #1c191704, 0 18px 40px -25px #1c19172b;
}
.log-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.log-card-shield {
  display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #8fc98e, #6aa86a); box-shadow: 0 8px 18px rgba(125, 184, 124, 0.26);
}
.log-card-shield svg { width: 24px; height: 24px; }
.log-card-title { flex: 1 1 220px; min-width: 0; }
.log-card-title h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.7px; line-height: 1.15; }
.log-card-title p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; font-weight: 600; }
.log-card-tests { margin: 18px 0 0; color: #6b655f; font-size: 14px; line-height: 1.5; }
.log-card .area-list { margin-top: 22px; }
.log-card .area-item { background: #faf8f5; border-color: #ece7e0; box-shadow: none; min-height: 56px; font-size: 15px; }
.log-quiet { margin: 28px 0 0; text-align: center; color: #6b655f; font-size: 13px; line-height: 1.7; }
.log-quiet a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(125, 184, 124, 0.7); text-underline-offset: 3px; }
.log-contact { margin: 20px 0 0; text-align: center; color: var(--text-2); font-size: 14px; }
.log-contact a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(125, 184, 124, 0.7); text-underline-offset: 4px; }

/* soft staggered entrance: reuses the site's .reveal, only adds delays */
.reveal[data-d="1"] { transition-delay: 0.06s; }
.reveal[data-d="2"] { transition-delay: 0.12s; }
.reveal[data-d="3"] { transition-delay: 0.18s; }
.reveal[data-d="4"] { transition-delay: 0.24s; }
.reveal[data-d="5"] { transition-delay: 0.30s; }

.inspect-section + .section { padding-top: 72px; }

@media (max-width: 900px) {
  .inspect-panel { padding: 36px 28px; }
  .inspect-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .inspect-promise { max-width: none; }
}
@media (max-width: 640px) {
  .inspect-section { padding-top: 40px; }
  .inspect-panel { padding: 28px 20px; border-radius: 24px; }
  .inspect-actions .inspect-btn { flex: 1 1 100%; }
  .inspect-stat { min-height: 68px; padding: 14px 18px; gap: 12px; }
  .inspect-stat b { font-size: 38px; width: 132px; }
  .inspect-tests { padding: 26px 20px 28px; border-radius: 22px; }
  .tests-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .area-list { grid-template-columns: minmax(0, 1fr); }
  .log-wrap { padding-top: 32px; }
  .log-card { padding: 22px 18px 24px; border-radius: 22px; }
  .log-card .inspect-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal[data-d] { transition-delay: 0s; }
}
@media print {
  header, footer, .inspect-actions { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
