/* ─── BMC Web — Shared Stylesheet ─────────────────────────── */

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

:root {
  --primary: #4338CA;
  --primary-light: #6366F1;
  --primary-soft: #EEF2FF;
  --ink: #16151F;
  --ink-2: #4B4A5C;
  --ink-3: #8785A0;
  --surface: #F7F7FB;
  --white: #ffffff;
  --teal: #00897B;
  --amber: #F57C00;
  --red: #C62828;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; border-radius: 7px; }
.nav-logo span {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }
.btn-nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.btn-nav-cta:hover { background: var(--primary-light); }

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

/* ─── PAGE HEADER ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #241F6B 0%, #4338CA 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.page-header-inner { max-width: 720px; margin: 0 auto; }
.page-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .material-symbols-outlined { font-size: 14px; }
.page-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── SIMPLE CONTENT PAGE ─────────────────────── */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.content-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.content-page h2:first-child { margin-top: 0; }
.content-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}
.content-page p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-page ul, .content-page ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.content-page li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 4px;
}
.content-page a { color: var(--primary); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }
.content-page strong { color: var(--ink); font-weight: 600; }
.content-page blockquote {
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.content-page blockquote p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ─── CALLOUT / NOTE ──────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.65;
}
.callout .material-symbols-outlined { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.callout-info { background: var(--primary-soft); color: var(--ink-2); }
.callout-info .material-symbols-outlined { color: var(--primary); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.callout-warning { background: #FFF8E1; color: #5D4037; }
.callout-warning .material-symbols-outlined { color: #F57C00; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.callout p { margin: 0; }

/* ─── FAQ ACCORDION ───────────────────────────── */
.faq-section { margin-bottom: 40px; }
.faq-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.faq-item {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  user-select: none;
  transition: background .15s;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
}
.faq-question:hover { background: var(--surface); }
.faq-question .material-symbols-outlined {
  font-size: 20px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  background: var(--white);
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-item.open .faq-answer { display: block; }

/* ─── STEP GUIDE ──────────────────────────────── */
.step-guide { counter-reset: step; }
.step-guide-item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}
.step-guide-item::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-guide-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: -4px;
  width: 1px;
  background: rgba(67,56,202,0.15);
}
.step-guide-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-guide-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.step-guide-body p:last-child { margin-bottom: 0; }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.footer-logo img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-logo span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-built-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.footer-built-by .material-symbols-outlined {
  font-size: 12px;
  color: rgba(220,60,60,0.6);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.footer-built-by a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-built-by a:hover { color: rgba(255,255,255,0.8); }

@media (min-width: 841px) {
  .page-header h1 { font-size: 48px; }
}
