/* Trust & Security — marketing page + shared badges */

/* Hero trust bar — 4-up icon strip */
.zivo-trust-bar-band {
  padding: 0 1.5rem 2.5rem;
  margin-top: -1.5rem;
  background: #ffffff;
}

.zivo-trust-bar-band-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 58rem;
  margin: 0 auto;
  border: 1px solid var(--zivo-border, #e2e8f0);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(42, 53, 72, 0.08);
  overflow: hidden;
}

a.zivo-trust-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 6.5rem;
  padding: 1rem 0.625rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--zivo-border, #e2e8f0);
  transition: background 0.15s;
}

a.zivo-trust-bar-item:last-child {
  border-right: none;
}

a.zivo-trust-bar-item:hover {
  background: #f8fafc;
}

.zivo-trust-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
}

.zivo-trust-bar-icon--shield {
  background: #ecfdf5;
  color: #059669;
}

.zivo-trust-bar-icon--shield img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(88%) saturate(520%) hue-rotate(122deg) brightness(95%) contrast(92%);
}

.zivo-trust-bar-icon--lock {
  background: #eff6ff;
  color: #2563eb;
}

.zivo-trust-bar-icon--lock img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(98%) saturate(1500%) hue-rotate(212deg) brightness(96%) contrast(96%);
}

.zivo-trust-bar-icon--consent {
  background: #fff7ed;
  color: #ea580c;
}

.zivo-trust-bar-icon--consent img {
  filter: brightness(0) saturate(100%) invert(43%) sepia(93%) saturate(1200%) hue-rotate(360deg) brightness(98%) contrast(96%);
}

.zivo-trust-bar-icon--ai {
  background: #f5f3ff;
  color: #6366f1;
}

.zivo-trust-bar-icon--ai img {
  filter: brightness(0) saturate(100%) invert(36%) sepia(72%) saturate(2500%) hue-rotate(226deg) brightness(98%) contrast(95%);
}

.zivo-trust-bar-icon--vault {
  background: #f8fafc;
  color: #334155;
}

.zivo-trust-bar-icon--vault img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(14%) saturate(1200%) hue-rotate(182deg) brightness(92%) contrast(88%);
}

.zivo-trust-bar-icon img,
.zivo-trust-bar-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.zivo-trust-bar-label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--zivo-ink, #2a3548);
  max-width: 7.5rem;
}

.zivo-trust-bar-band--inline {
  padding: 0;
  margin-top: 1.25rem;
}

.zivo-trust-bar-band--inline .zivo-trust-bar-band-inner {
  max-width: 100%;
}

.zivo-trust-bar-band--inline a.zivo-trust-bar-item {
  min-height: 5.25rem;
  padding: 0.75rem 0.5rem;
}

.zivo-trust-bar-band--inline .zivo-trust-bar-icon {
  width: 3rem;
  height: 3rem;
}

.zivo-trust-bar-band--inline .zivo-trust-bar-icon img,
.zivo-trust-bar-band--inline .zivo-trust-bar-icon svg {
  width: 2rem;
  height: 2rem;
}

.zivo-trust-bar-band--inline .zivo-trust-bar-label {
  font-size: 0.6875rem;
  max-width: 6.5rem;
}

.zivo-trust-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.zivo-trust-badge-strip--center {
  justify-content: center;
}

a.zivo-trust-badge {
  text-decoration: none;
  color: inherit;
}

a.zivo-trust-badge:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 16px rgba(42, 53, 72, 0.1);
}

.zivo-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--zivo-border, #e5e7eb);
  border-radius: 12px;
  background: var(--zivo-surface, #fff);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zivo-ink, #2a3548);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zivo-trust-badge img,
.zivo-trust-badge svg {
  width: 22px;
  height: 22px;
  color: #475569;
  flex-shrink: 0;
}

.zivo-inline-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.zivo-inline-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark-muted, #94a3b8);
}

.feature-showcase--dark .zivo-inline-trust-badge {
  color: #cbd5e1;
}

.zivo-inline-trust-badge img {
  width: 18px;
  height: 18px;
}

.zivo-ai-privacy-pledge {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #e0e7ff;
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 60%);
}

.feature-showcase--dark .zivo-ai-privacy-pledge {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.4) 60%);
}

.zivo-ai-privacy-pledge h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #4338ca;
}

.feature-showcase--dark .zivo-ai-privacy-pledge h3 {
  color: #c7d2fe;
}

.zivo-ai-privacy-pledge p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zivo-ink-muted, #5c6578);
}

.feature-showcase--dark .zivo-ai-privacy-pledge p {
  color: #cbd5e1;
}

.zivo-ai-privacy-pledge ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zivo-ai-privacy-pledge li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
}

.feature-showcase--dark .zivo-ai-privacy-pledge li {
  color: #94a3b8;
}

.zivo-ai-privacy-pledge li img {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Landing — horizontal AI privacy bar */
.zivo-ai-privacy-bar {
  padding: 1.125rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--zivo-border, #e5e7eb);
  border-bottom: 1px solid var(--zivo-border, #e5e7eb);
}

.zivo-ai-privacy-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  max-width: var(--zivo-max-width, 1120px);
  margin: 0 auto;
}

.zivo-ai-privacy-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.zivo-ai-privacy-bar-brand h2 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #4338ca;
  white-space: nowrap;
}

.zivo-ai-privacy-bar-tagline {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.zivo-ai-privacy-bar-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zivo-ai-privacy-bar-items li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.zivo-ai-privacy-bar-items li img {
  flex-shrink: 0;
}

.zivo-ai-privacy-bar-link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  white-space: nowrap;
}

.zivo-ai-privacy-bar-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .zivo-ai-privacy-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.625rem;
  }

  .zivo-ai-privacy-bar-brand {
    justify-content: center;
  }

  .zivo-ai-privacy-bar-tagline {
    white-space: normal;
    max-width: 22rem;
  }

  .zivo-ai-privacy-bar-items {
    justify-content: center;
  }

  .zivo-ai-privacy-bar-items li {
    white-space: normal;
  }
}

/* Security page */
body.security-page {
  background: #ffffff;
}

.security-main {
  padding-bottom: 0;
}

.security-hero {
  padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(2.5rem, 6vw, 4rem);
  background: #ffffff;
  border-bottom: 1px solid var(--zivo-border, #e5e7eb);
}

.security-hero-inner {
  max-width: var(--zivo-max-width, 1120px);
  margin: 0 auto;
  text-align: center;
}

.security-hero .section-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.security-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--zivo-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--zivo-ink, #2a3548);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.security-hero .lead {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-section {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: #ffffff;
}

.security-section--soft {
  background: #ffffff;
}

.security-section-inner {
  max-width: var(--zivo-max-width, 1120px);
  margin: 0 auto;
}

.security-section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--zivo-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--zivo-ink, #2a3548);
}

.security-section .section-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-section--centered .security-section-inner {
  text-align: center;
}

.security-section--centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.security-owner-band h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.security-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.security-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--zivo-border, #e5e7eb);
  box-shadow: var(--zivo-card-shadow, 0 4px 24px rgba(42, 53, 72, 0.07));
}

.security-card img {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
}

.security-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--zivo-ink, #2a3548);
}

.security-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-arch-diagram {
  margin: 0 auto 2rem;
  max-width: 100%;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid var(--zivo-border, #e5e7eb);
  box-shadow: var(--zivo-card-shadow);
  padding: 0.5rem;
  background: #fff;
}

.security-arch-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.security-aws-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
  text-align: left;
}

.security-aws-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--zivo-border, #e5e7eb);
  box-shadow: var(--zivo-card-shadow, 0 4px 24px rgba(42, 53, 72, 0.07));
}

.security-aws-card--ai {
  border-color: #e0e7ff;
  background: linear-gradient(135deg, #fafaff 0%, #ffffff 70%);
}

.security-aws-card img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.875rem;
}

.security-aws-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--zivo-ink, #2a3548);
}

.security-aws-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-aws-card a {
  color: #475569;
  font-weight: 600;
}

.security-card a {
  color: #475569;
  font-weight: 600;
}

.security-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 40rem;
}

.security-bullet-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-bullet-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #475569;
}

.security-encrypt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.security-encrypt-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--zivo-border, #e5e7eb);
}

.security-encrypt-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
}

.security-encrypt-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.security-encrypt-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-consent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.security-consent-step {
  padding: 1.25rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--zivo-border, #e5e7eb);
}

.security-consent-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #475569;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.security-consent-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.security-consent-step p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-accordion {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-accordion details {
  border: 1px solid var(--zivo-border, #e5e7eb);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.security-accordion summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--zivo-ink, #2a3548);
}

.security-accordion summary::-webkit-details-marker {
  display: none;
}

.security-accordion summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: #475569;
}

.security-accordion details[open] summary::after {
  content: "−";
}

.security-accordion summary img {
  width: 22px;
  height: 22px;
}

.security-accordion .accordion-body {
  padding: 0 1.25rem 1.25rem 3rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-accordion .accordion-body p {
  margin: 0 0 0.75rem;
}

.security-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

.security-accordion .accordion-body a {
  color: #475569;
}

.security-faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.security-faq-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--zivo-border, #e5e7eb);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zivo-ink-muted, #5c6578);
  cursor: pointer;
  font-family: inherit;
}

.security-faq-tab.is-active {
  background: #2a3548;
  border-color: #2a3548;
  color: #fff;
}

.security-faq-panel {
  max-width: 40rem;
  margin: 0 auto;
}

.security-faq-panel[hidden] {
  display: none;
}

.security-faq-item {
  border-bottom: 1px solid var(--zivo-border, #e5e7eb);
}

.security-faq-item summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.security-faq-item summary::-webkit-details-marker {
  display: none;
}

.security-faq-item p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-promo-band {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--zivo-border, #e5e7eb);
}

.security-promo-inner {
  max-width: var(--zivo-max-width, 1120px);
  margin: 0 auto;
  text-align: center;
}

.security-promo-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.security-promo-inner p {
  margin: 0 0 1.25rem;
  color: var(--zivo-ink-muted, #5c6578);
}

.security-promo-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 55%, #eef2f7 100%);
  border: 1px solid var(--zivo-border, #e5e7eb);
  box-shadow: 0 2px 12px rgba(42, 53, 72, 0.06);
}

.provider-governance {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: #ffffff;
}

.provider-governance-inner {
  max-width: var(--zivo-max-width, 1120px);
  margin: 0 auto;
}

.provider-governance .section-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.provider-governance h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.provider-governance .section-lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--zivo-ink-muted, #5c6578);
  line-height: 1.6;
}

.provider-governance-more {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.provider-governance-more a {
  color: #475569;
  font-weight: 600;
}

.zivo-trust-bar a.security-learn-more {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

@media (max-width: 900px) {
  .zivo-trust-bar-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  a.zivo-trust-bar-item:nth-child(1),
  a.zivo-trust-bar-item:nth-child(2),
  a.zivo-trust-bar-item:nth-child(3),
  a.zivo-trust-bar-item:nth-child(4) {
    border-bottom: 1px solid var(--zivo-border, #e2e8f0);
  }

  a.zivo-trust-bar-item:nth-child(2),
  a.zivo-trust-bar-item:nth-child(4) {
    border-right: none;
  }

  a.zivo-trust-bar-item:nth-child(odd) {
    border-right: 1px solid var(--zivo-border, #e2e8f0);
  }

  a.zivo-trust-bar-item:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }

  .security-card-grid,
  .security-consent-steps {
    grid-template-columns: 1fr;
  }

  .security-encrypt-grid {
    grid-template-columns: 1fr;
  }

  .security-aws-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .security-aws-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .zivo-trust-bar-band-inner {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .zivo-trust-bar-band-inner::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  a.zivo-trust-bar-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
    border-right: 1px solid var(--zivo-border, #e2e8f0) !important;
    border-bottom: none !important;
    min-height: 6.5rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
  }

  a.zivo-trust-bar-item:last-child {
    border-right: none !important;
  }

  .zivo-trust-bar-label {
    max-width: none;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .zivo-trust-badge-strip {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zivo-trust-badge {
    transition: none;
  }
}
