/* ═══════════════════════════════════════════════════════════════
   Injio NG Licensing — Shared Stylesheet
   Applies to: index.html, consent-complete.html
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #111111;
  --teal:      #2ba6bb;
  --teal-dark: #1e8fa0;
  --bg:        #f0f2f5;
  --white:     #ffffff;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.navbar-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.navbar-product {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.navbar-link:hover {
  color: #fff;
}

/* ─── HERO (index.html) ──────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto;
}
.hero-divider {
  width: 48px;
  height: 3px;
  background: #fff;
  margin: 32px auto;
  border-radius: 2px;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto;
}

/* ─── STATE BANNER (consent-complete.html) ───────────────── */
.state-banner {
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
}
.state-banner.success {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}
.state-banner.error {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}
.state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
}
.state-banner h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}
.state-banner p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 166, 187, 0.4);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 166, 187, 0.45);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* Ghost variant on light backgrounds (e.g. inside stepper) */
.btn-ghost-light {
  background: #fff;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-ghost-light:hover {
  background: var(--bg);
  color: var(--text);
}
.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}
.btn-neutral {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-neutral:hover {
  background: var(--border);
}

/* ─── PAGE MAIN ──────────────────────────────────────────── */
.page-main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── PANEL ──────────────────────────────────────────────── */
.panel {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.panel-head {
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-icon.amber  { background: #fef3c7; }
.panel-icon.blue   { background: #dbeafe; }
.panel-icon.violet { background: #ede9fe; }
.panel-icon.green  { background: #dcfce7; }
.panel-head-text h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.panel-head-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.panel-body {
  padding: 24px 28px;
}
.panel-body.flush {
  padding: 0;
}

/* ─── ROLE NOTICE ────────────────────────────────────────── */
.role-notice {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.75;
}
.role-notice strong {
  font-weight: 700;
}

/* ─── WHAT HAPPENS GRID (index.html) ─────────────────────── */
.wh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wh-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.wh-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wh-card-icon.blue  { background: #dbeafe; }
.wh-card-icon.teal  { background: #ccfbf1; }
.wh-card-icon.green { background: #dcfce7; }
.wh-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.wh-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── PERMISSIONS TABLE (index.html) ─────────────────────── */
.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.perm-table th {
  background: #f8fafc;
  text-align: left;
  padding: 11px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.perm-table td {
  padding: 14px 20px;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
}
.perm-table tbody tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-delegated { background: #dbeafe; color: #1e40af; }
.badge-read      { background: #dcfce7; color: #166534; }
code.inline {
  font-size: 12px;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Courier New', monospace;
}

/* ─── STEPPER (index.html) ───────────────────────────────── */
.stepper {
  display: flex;
  flex-direction: column;
}
.stepper-item {
  border-bottom: 1px solid var(--border);
}
.stepper-item:last-child {
  border-bottom: none;
}
.stepper-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.stepper-header:hover .step-num {
  box-shadow: 0 0 0 3px rgba(43, 166, 187, 0.15);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.stepper-item.active .step-num {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.stepper-item.done .step-num {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
}
.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.stepper-item.active .step-title {
  color: var(--teal);
}
.step-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--teal);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
}
.step-badge.done-badge {
  background: #dcfce7;
  color: #166534;
}
.stepper-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--muted);
}
.stepper-item.open .stepper-chevron {
  transform: rotate(180deg);
}
.stepper-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.stepper-item.open .stepper-body {
  max-height: 500px;
}
.stepper-content {
  padding: 0 0 22px 48px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.stepper-content strong {
  color: var(--text);
}
.stepper-content em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}
.stepper-cta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.stepper-cta .btn {
  font-size: 14px;
  padding: 12px 28px;
}
/* Ordered list inside stepper steps */
.step-ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── TENANT ID ROW (consent-complete.html) ──────────────── */
.tenant-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}
.tenant-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.tenant-id {
  font-family: 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}
.copy-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ─── NEXT STEPS LIST (consent-complete.html) ────────────── */
.next-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.ns-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── ERROR BOX (consent-complete.html) ──────────────────── */
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #991b1b;
  line-height: 1.7;
}
.error-box strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ─── CTA ROW (consent-complete.html) ───────────────────── */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cta-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
}
.cta-hint a {
  color: var(--teal);
  text-decoration: none;
}
.cta-hint a:hover {
  text-decoration: underline;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar-right {
    display: none;
  }
  .hero {
    padding: 48px 20px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .state-banner {
    padding: 40px 20px;
  }
  .state-banner h1 {
    font-size: 24px;
  }
  .page-main {
    padding: 32px 16px 48px;
  }
  .panel-head,
  .panel-body {
    padding: 16px 20px;
  }
  .wh-grid {
    grid-template-columns: 1fr;
  }
  .tenant-row {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-btn {
    margin-top: 4px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn {
    justify-content: center;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .footer-links {
    justify-content: center;
  }
}
