/* ── POS Page Specific Styles ─────────────────────────── */

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: var(--transition);
}
.back-link:hover { color: var(--purple-light); }

/* Product Hero */
.pos-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.pos-hero-content { position: relative; z-index: 1; max-width: 760px; }

.pos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 24px;
}
.product-icon-sm { font-size: 18px; }
.badge-sep { opacity: 0.3; }
.version-tag { color: var(--text-muted); font-weight: 400; }

.pos-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.pos-hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.pos-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.pos-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.pos-hero-meta span { display: flex; align-items: center; gap: 4px; }

/* Feature Detail Grid */
.features-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-module {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature-module:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.fm-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.fm-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.fm-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.65; }
.fm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fm-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.fm-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 11px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.pricing-featured {
  border-color: rgba(124,58,237,0.4);
  background: linear-gradient(145deg, #14112a 0%, #12101c 100%);
  box-shadow: 0 4px 60px rgba(124,58,237,0.15);
}
.pricing-badge {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold) 0%, #f97316 100%);
  color: #000;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  width: fit-content;
}
.pricing-card h4 { font-size: 18px; font-weight: 700; }
.pricing-price { font-family: var(--font-display); font-size: 32px; font-weight: 800; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-save { font-size: 13px; color: var(--green); font-weight: 600; }
.pricing-card > p { font-size: 14px; color: var(--text-muted); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-features li { font-size: 14px; color: var(--text-muted); }
.pricing-note { text-align: center; font-size: 14px; color: var(--text-muted); }

/* System Requirements */
.sysreq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sysreq-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.sysreq-icon { font-size: 40px; margin-bottom: 16px; }
.sysreq-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.sysreq-table { width: 100%; border-collapse: collapse; }
.sysreq-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.sysreq-table td { padding: 10px 0; font-size: 14px; vertical-align: top; }
.sysreq-table td:first-child { color: var(--text-dim); width: 100px; }
.sysreq-table td:last-child { color: var(--text); }

/* Documentation Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar for Desktop */
@media (min-width: 1025px) {
  .docs-sidebar {
    position: sticky;
    top: 84px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
  }
}

/* Sidebar for Mobile */
@media (max-width: 1024px) {
  .docs-sidebar {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin: 0 -24px 20px -24px;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .docs-sidebar::-webkit-scrollbar { display: none; }
  .docs-nav-group { margin-bottom: 0; display: flex; align-items: center; gap: 8px; padding: 0 24px; }
  .docs-nav-title { display: none; }
  .docs-nav-link { 
    padding: 6px 14px; 
    font-size: 13px; 
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
  }
  .docs-nav-link.active { background: var(--purple); color: #fff; border-color: var(--purple); }
}
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  padding: 0 8px;
  margin-bottom: 6px;
}
.docs-nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}
.docs-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.docs-nav-link.active { color: var(--purple-light); background: rgba(124,58,237,0.1); font-weight: 600; }

/* Docs Content */
.docs-content { display: flex; flex-direction: column; gap: 0; }
.doc-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.doc-section:last-child { border-bottom: none; }
.doc-section h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.doc-section p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.doc-section code {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: var(--purple-light);
}
.doc-ol { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.doc-ol li { font-size: 15px; color: var(--text-muted); line-height: 1.65; padding-left: 4px; }

.doc-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.doc-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.doc-step-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.doc-step div { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.doc-step div strong { color: var(--text); display: block; margin-bottom: 2px; }
.doc-section a { color: var(--purple-light); }

.doc-note {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--border-hover); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.faq-q:hover { color: var(--purple-light); }
.faq-icon {
  font-size: 20px;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-bg-glow { display: none; }
  .features-detail-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pos-hero { padding-top: 120px; min-height: auto; }
  .pos-hero-title { font-size: 40px; }
  .pos-hero-sub { font-size: 16px; }
  .pos-hero-cta { flex-direction: column; }
  .sysreq-grid { grid-template-columns: 1fr; }
  
  /* Tables on Mobile */
  .sysreq-card { overflow-x: auto; }
  .sysreq-table { min-width: 400px; }
  
  .doc-section h3 { font-size: 20px; }
  .doc-step { flex-direction: column; }
}
