:root {
  --brand: #5B2D8A;
  --brand-light: #F3EEFF;
  --brand-border: #E9DCFE;
  --brand-dark: #3D1A6E;
  --text-dark: #1A1A2E;
  --text-body: #374151;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --bg: #F8F7FF;
  --warning-bg: #FFFBEB;
  --warning-border: #FCD34D;
  --success-bg: #F0FDF4;
  --success-border: #86EFAC;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--brand-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-desktop a.active {
  color: var(--brand);
  font-weight: 600;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--brand);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── Mobile Sidebar ── */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 150;
}

.overlay.visible {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transition: left 0.3s ease;
  padding: 80px 24px 40px;
}

.sidebar.open {
  left: 0;
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--text-body);
  text-decoration: none;
}

.nav-mobile a:hover {
  background: var(--brand-light);
  text-decoration: none;
}

.nav-mobile a.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

.nav-icon {
  font-size: 18px;
}

/* ── Main Layout ── */

.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero (homepage) ── */

.hero {
  background: linear-gradient(135deg, #5B2D8A 0%, #7C3AED 100%);
  padding: 64px 24px;
  text-align: center;
  color: var(--white);
}

.hero-logo {
  height: 80px;
  width: auto;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 16px 0 8px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 8px;
  line-height: 1.7;
}

.hero-company {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

/* ── Typography ── */

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-border);
}

.sub-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 20px 0 8px;
}

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
}

ul {
  margin: 8px 0 16px 20px;
}

ul li {
  margin-bottom: 8px;
}

/* ── Callout / Alert Boxes ── */

.callout {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 24px;
}

.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}

.success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}

.info-card {
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  color: var(--brand);
}

/* ── Permission Cards ── */

.permission-card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.permission-badge {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.permission-card p {
  margin: 0;
  font-size: 15px;
}

/* ── Cards (homepage) ── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(91, 45, 138, 0.12);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--brand);
  color: var(--brand);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline:hover {
  text-decoration: none;
}

.btn-center {
  text-align: center;
  margin: 32px 0;
}

.contact-links {
  font-size: 14px;
  line-height: 2;
}

.contact-links a {
  display: block;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Trust Badges ── */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  padding: 8px 16px;
}

/* ── Numbered Steps ── */

.steps {
  list-style: none;
  counter-reset: steps;
  margin: 16px 0 24px;
}

.steps li {
  counter-increment: steps;
  position: relative;
  padding: 14px 14px 14px 52px;
  border-bottom: 1px solid var(--brand-border);
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 12px;
  top: 14px;
  background: var(--brand);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ── Contact Card ── */

.contact-card {
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

.contact-card p {
  margin-bottom: 6px;
}

.footer-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  margin-bottom: 8px;
}

/* ── Footer ── */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--brand-border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--brand);
}

/* ── Responsive ── */

@media (min-width: 768px) {
  .page-wrapper {
    padding: 60px 40px 80px;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }
}
