/* ================================================================
   Brykto Help Center — help.css
   ================================================================ */

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

:root {
  --orange:    #FF5A14;
  --orange-bg: #FEF3EC;
  --text:      #0F172A;
  --text-2:    #64748B;
  --border:    #E2E8F0;
  --canvas:    #F8FAFC;
  --white:     #ffffff;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Topbar ──────────────────────────────────────────────────────────────── */

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

.h-topbar-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.h-topbar-logo img {
  height: 28px;
  width: auto;
}

.h-topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h-topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.15s;
}

.h-topbar-link:hover { color: var(--text); }

.h-topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  border-radius: 8px;
  transition: opacity 0.15s;
}

.h-topbar-btn:hover { opacity: 0.9; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.h-hero {
  position: relative;
  overflow: hidden;
  background: var(--orange-bg);
  padding: 80px 32px 72px;
  text-align: center;
}

/* Large blurred circle — left decorative element */
.h-hero::before {
  content: '';
  position: absolute;
  left: -160px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.14;
  pointer-events: none;
}

/* Dot grid — right decorative element */
.h-hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.07;
  pointer-events: none;
}

.h-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.h-hero-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.h-hero-title span { color: var(--orange); }

.h-hero-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-bottom: 36px;
  font-weight: 500;
}

.h-search-form {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  max-width: 520px;
  margin: 0 auto;
  transition: border-color 0.15s;
}

.h-search-form:focus-within { border-color: var(--orange); }

.h-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}

.h-search-btn {
  background: var(--orange);
  border: none;
  cursor: pointer;
  padding: 0 20px;
  color: var(--white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}

.h-search-btn:hover { opacity: 0.9; }

/* ── Cards section ───────────────────────────────────────────────────────── */

.h-cards-section {
  background: var(--white);
  padding: 64px 32px;
}

.h-cards-section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.h-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.h-section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 36px;
}

.h-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.h-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.h-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 24px rgba(255, 90, 20, 0.1);
}

.h-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-card-icon i {
  font-size: 24px;
  color: var(--orange);
}

.h-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.h-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.h-card-arrow {
  font-size: 18px;
  color: var(--orange);
  align-self: flex-start;
}

/* ── Footer CTA ──────────────────────────────────────────────────────────── */

.h-footer-cta {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  padding: 48px 32px;
}

.h-footer-cta-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.h-footer-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-footer-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-footer-icon i { font-size: 24px; color: var(--orange); }

.h-footer-cta-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.h-footer-cta-text p {
  font-size: 14px;
  color: var(--text-2);
}

.h-footer-cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.h-btn-outline {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h-btn-outline:hover { border-color: var(--text); }

.h-btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.h-btn-primary:hover { opacity: 0.9; }

/* ── Category page ───────────────────────────────────────────────────────── */

.h-cat-hero {
  background: var(--orange-bg);
  padding: 48px 32px 40px;
  position: relative;
  overflow: hidden;
}

.h-cat-hero::before {
  content: '';
  position: absolute;
  left: -100px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.1;
  pointer-events: none;
}

.h-cat-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.h-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 20px;
}

.h-breadcrumb a:hover { color: var(--orange); }
.h-breadcrumb i { font-size: 12px; }

.h-cat-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-cat-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,90,20,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-cat-header-icon i { font-size: 28px; color: var(--orange); }

.h-cat-header-text h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.h-cat-header-text p {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 4px;
}

.h-cat-articles {
  max-width: 1080px;
  margin: 48px auto;
  padding: 0 32px;
}

.h-article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-article-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.h-article-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(255,90,20,0.08);
}

.h-article-card-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.h-article-card-text p {
  font-size: 13px;
  color: var(--text-2);
}

.h-article-card-arrow {
  font-size: 20px;
  color: var(--text-2);
  flex-shrink: 0;
}

.h-article-card:hover .h-article-card-arrow { color: var(--orange); }

/* ── Article page ────────────────────────────────────────────────────────── */

.h-article-layout {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  gap: 48px;
  min-height: calc(100vh - 64px);
}

.h-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 40px 0;
}

.h-sidebar-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 24px;
  transition: color 0.15s;
}

.h-sidebar-back:hover { color: var(--orange); }

.h-sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}

.h-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.h-sidebar-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.h-sidebar-link:hover {
  color: var(--text);
  background: var(--canvas);
}

.h-sidebar-link.active {
  color: var(--orange);
  font-weight: 700;
  background: var(--orange-bg);
}

.h-article-main {
  flex: 1;
  min-width: 0;
  padding: 40px 0;
  max-width: 720px;
}

.h-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 24px;
}

.h-article-breadcrumb a:hover { color: var(--orange); }

.h-article-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 32px;
}

/* Article body prose */
.h-prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.h-prose h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.h-prose p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.h-prose ul, .h-prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.h-prose li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 6px;
}

.h-prose a {
  color: var(--orange);
  font-weight: 600;
}

.h-prose a:hover { text-decoration: underline; }

.h-prose code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--text);
}

.h-prose pre {
  background: #1E293B;
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.h-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #E2E8F0;
  font-size: 13px;
}

.h-prose blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--text-2);
  font-style: italic;
}

.h-prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.h-prose th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text);
}

.h-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}

/* TOC sidebar (right side on article pages) */
.h-toc {
  width: 200px;
  flex-shrink: 0;
  padding: 40px 0;
}

.h-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}

.h-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 80px;
}

.h-toc-link {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 0;
  line-height: 1.4;
  transition: color 0.15s;
}

.h-toc-link:hover { color: var(--orange); }
.h-toc-link.h3 { padding-left: 12px; }

/* ── Docs pages ──────────────────────────────────────────────────────────── */

.h-docs-hero {
  background: #0F172A;
  padding: 64px 32px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.h-docs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,90,20,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(255,90,20,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.h-docs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.h-docs-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,90,20,0.12);
  border: 1px solid rgba(255,90,20,0.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.h-docs-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.h-docs-sub {
  font-size: 16px;
  color: #94A3B8;
  margin-bottom: 36px;
}

.h-docs-list {
  max-width: 1080px;
  margin: 48px auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h-docs-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.h-docs-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(255,90,20,0.08);
}

.h-docs-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-docs-badge {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 700;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--text-2);
  flex-shrink: 0;
  white-space: nowrap;
}

.h-docs-card-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.h-docs-card-text p {
  font-size: 13px;
  color: var(--text-2);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .h-toc { display: none; }
  .h-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .h-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .h-article-layout { flex-direction: column; gap: 0; }
  .h-sidebar {
    width: 100%;
    padding: 24px 0 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }
  .h-footer-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .h-topbar { padding: 0 16px; }
  .h-hero { padding: 56px 16px 48px; }
  .h-cards-section { padding: 48px 16px; }
  .h-cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .h-cat-articles { padding: 0 16px; margin: 32px auto; }
  .h-article-layout { padding: 0 16px; }
  .h-docs-list { padding: 0 16px; }
  .h-footer-cta { padding: 32px 16px; }
  .h-footer-cta-actions { flex-direction: column; width: 100%; }
  .h-btn-outline, .h-btn-primary { justify-content: center; }
}
