/* Identitas brand theme + product sales frame (Phase 6A.3) */

:root {
  --brand-name: 'Identitas';
  --brand-accent: #1F3A6B;
  --brand-accent-dark: #172D54;
  --brand-accent-tint: rgba(31, 58, 107, 0.1);

  --nx-coral: var(--brand-accent);
  --nx-coral-dark: var(--brand-accent-dark);
  --nx-coral-tint: var(--brand-accent-tint);
  --nx-shadow-cta: 0 4px 14px rgba(31, 58, 107, 0.28);
}

.nx-identitas .nx-id-hero__title em {
  font-style: italic;
  color: var(--brand-accent);
}

/* Product nav */
.nx-id-nav {
  border-bottom: 1px solid var(--nx-border);
  background: var(--nx-canvas);
}

.nx-id-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.nx-id-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-id-nav__wordmark {
  font-size: 14px;
  font-weight: 600;
}

.nx-id-nav__crumb {
  font-size: 10px;
}

.nx-chip--navy {
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
}

.nx-id-nav__link {
  font-size: 13px;
  color: var(--nx-charcoal);
  text-decoration: none;
}

.nx-id-nav__demo {
  padding: 8px 14px;
  font-size: 13px;
}

/* Hero */
.nx-id-hero {
  padding: 64px 0 40px;
}

.nx-id-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 960px) {
  .nx-id-hero__grid {
    grid-template-columns: 1fr;
  }
}

.nx-id-hero__title {
  font-family: var(--nx-font-display);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0;
  font-weight: 500;
  color: var(--nx-ink);
}

.nx-id-hero__body {
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 28px;
  color: var(--nx-text);
}

.nx-id-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.nx-id-hero__trust {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--nx-muted);
}

.nx-id-hero__trust-sep {
  opacity: 0.6;
}

/* Consent preview */
.nx-id-consent__card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--nx-shadow-lg);
  max-width: 340px;
  margin-left: auto;
}

.nx-id-consent__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.nx-id-consent__head-copy {
  flex: 1;
}

.nx-id-consent__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-ink);
}

.nx-id-consent__session {
  font-size: 11px;
  color: var(--nx-muted);
}

.nx-id-consent__intro {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.nx-id-consent__panel {
  background: var(--nx-cool);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.nx-id-consent__panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--nx-muted);
  margin-bottom: 8px;
}

.nx-id-consent__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
}

.nx-id-consent__privacy {
  font-size: 11px;
  color: var(--nx-muted);
  font-style: italic;
  margin-bottom: 14px;
}

.nx-id-consent__cta {
  width: 100%;
  justify-content: center;
}

.nx-id-consent__reject {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

/* How */
.nx-id-how {
  padding: 48px 0 24px;
  border-top: 1px solid var(--nx-border);
}

.nx-id-how__title {
  font-family: var(--nx-font-display);
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.nx-id-how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-surface);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .nx-id-how__grid {
    grid-template-columns: 1fr;
  }

  .nx-id-how__step--border {
    border-left: none !important;
    border-top: 1px solid var(--nx-border);
  }
}

.nx-id-how__step {
  padding: 28px;
}

.nx-id-how__step--border {
  border-left: 1px solid var(--nx-border);
}

.nx-id-how__num {
  font-family: var(--nx-font-display);
  font-size: 24px;
  color: var(--brand-accent);
  font-weight: 500;
}

.nx-id-how__step h3 {
  font-size: 20px;
  margin: 18px 0 8px;
}

.nx-id-how__step p {
  font-size: 13px;
  margin-bottom: 16px;
}

.nx-id-how__actor {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nx-muted);
  font-weight: 600;
}

/* Snippet + pricing */
.nx-id-snip {
  padding: 48px 0;
  background: var(--nx-cool);
  margin-top: 48px;
}

.nx-id-snip__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .nx-id-snip__grid {
    grid-template-columns: 1fr;
  }
}

.nx-id-snip__title {
  font-family: var(--nx-font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 6px 0 18px;
}

.nx-id-snip__terminal {
  background: var(--nx-navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--nx-shadow-lg);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
}

.nx-id-snip__terminal-head {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(252, 252, 252, 0.08);
  background: rgba(0, 0, 0, 0.15);
  font-size: 11px;
  color: rgba(252, 252, 252, 0.55);
}

.nx-id-snip__pre {
  margin: 0;
  padding: 18px 20px;
  line-height: 1.7;
  color: #e1e4ea;
  overflow-x: auto;
}

.tok-kw { color: #f36e6d; }
.tok-id { color: #fcfcfc; }
.tok-fn { color: #7bb3ff; }
.tok-key { color: #a7b0bd; }
.tok-str { color: #9bcb8d; }
.tok-comment { color: rgba(252, 252, 252, 0.4); }

.nx-id-snip__sdks {
  font-size: 12px;
  color: var(--nx-muted);
  margin-top: 12px;
}

.nx-id-price {
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--nx-surface);
}

.nx-id-price__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  position: relative;
}

.nx-id-price__row--border {
  border-top: 1px solid var(--nx-border);
}

.nx-id-price__row--featured {
  background: rgba(31, 58, 107, 0.04);
}

.nx-id-price__row--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-accent);
}

.nx-id-price__tier {
  width: 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: var(--nx-muted);
}

.nx-id-price__row--featured .nx-id-price__tier {
  color: var(--brand-accent);
}

.nx-id-price__copy {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.nx-id-price__desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--nx-muted);
  margin-top: 2px;
}

.nx-id-price__amount {
  font-family: var(--nx-font-display);
  font-size: 22px;
  color: var(--nx-ink);
  font-weight: 500;
}

.nx-id-price__vol {
  font-size: 11px;
  color: var(--nx-muted);
  margin-top: 10px;
}

/* Trust */
.nx-id-trust {
  padding: 56px 0 48px;
}

.nx-id-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .nx-id-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .nx-id-trust__grid {
    grid-template-columns: 1fr;
  }
}

.nx-id-trust__tile h4 {
  font-family: var(--nx-font-display);
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 500;
}

.nx-id-trust__tile p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--nx-text);
  margin: 0;
}

/* Suite strip */
.nx-id-suite {
  border-top: 1px solid var(--nx-border);
  padding: 20px 0;
  background: var(--nx-canvas);
}

.nx-id-suite__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--nx-muted);
}

.nx-id-suite__brand {
  font-weight: 600;
  color: var(--nx-charcoal);
}

.nx-id-suite__link {
  color: var(--nx-charcoal);
  text-decoration: none;
  font-weight: 500;
}

.nx-id-suite__link:hover {
  color: var(--brand-accent);
}

.nx-id-suite__sep {
  opacity: 0.5;
}

[data-theme="dark"] .nx-identitas {
  --brand-accent: #7ba8f5;
  --brand-accent-dark: #9bc0ff;
  --brand-accent-tint: rgba(123, 168, 245, 0.14);
  --nx-shadow-cta: 0 4px 14px rgba(123, 168, 245, 0.28);
}
