/* Product landing (home) and guide articles. Loaded after landing.css on body.landing-page. */

.hb-page {
  --hb-ink: #16181d;
  --hb-muted: #4b5260;
  --hb-subtle: #7a8190;
  --hb-line: #e4e6eb;
  --hb-soft: #f6f7f9;
  --hb-dark: #0d1117;
  --hb-teal: #0e9aa7;
  color: var(--hb-ink);
}

/* ── Header nav ───────────────────────────────────────────── */
.hb-page .site-header { gap: 16px; }
.hb-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.hb-nav a {
  color: var(--hb-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  padding: 6px 10px; border-radius: 6px;
}
.hb-nav a:hover { color: var(--hb-ink); background: rgba(0, 0, 0, 0.04); }
.hb-lang-on { font-size: 12px; font-weight: 600; color: var(--hb-ink); }
.hb-lang-sep { font-size: 12px; color: var(--hb-subtle); }
.hb-lang-off { font-size: 12px; color: var(--hb-subtle); background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
@media (max-width: 860px) {
  .hb-nav { display: none; }
  .hb-hide-sm { display: none !important; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 1rem;
  text-decoration: none !important; line-height: 1.2; transition: opacity .15s, background .15s;
}
.hb-btn--primary { background: var(--accent); color: #fff !important; }
.hb-btn--primary:hover { opacity: .88; }
.hb-btn--ghost { color: var(--hb-ink) !important; border: 1px solid var(--hb-line); background: #fff; }
.hb-btn--ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.hb-textlink { color: var(--hb-muted); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.hb-textlink:hover { color: var(--accent); }

/* ── Layout ───────────────────────────────────────────────── */
.hb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hb-section { padding: 72px 0; border-top: 1px solid var(--hb-line); }
.hb-section--soft { background: var(--hb-soft); }
.hb-kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .04em; margin: 0 0 10px; }
.hb-h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; margin: 0 0 14px; letter-spacing: -0.01em; }
.hb-sub { font-size: 1.05rem; line-height: 1.85; color: var(--hb-muted); max-width: 760px; margin: 0 0 32px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hb-hero { padding: 56px 0 64px; }
.hb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hb-hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.25; margin: 0 0 18px; letter-spacing: -0.02em; }
.hb-hero-lead { font-size: 1.1rem; line-height: 1.85; color: var(--hb-muted); margin: 0 0 26px; }
.hb-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hb-hero-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--hb-muted); }
.hb-hero-trust li::before { content: "✓"; color: var(--hb-teal); font-weight: 700; margin-right: 6px; }
.hb-shot {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--hb-dark);
  box-shadow: 0 30px 60px -20px rgba(13, 17, 23, .45), 0 0 0 1px rgba(13, 17, 23, .08);
}
.hb-shot img, .hb-shot video { display: block; width: 100%; height: auto; }
.hb-shot figcaption { font-size: 12px; color: #9aa4b2; padding: 10px 14px; background: #0b0f15; }
@media (max-width: 960px) {
  .hb-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Problem comparison ───────────────────────────────────── */
.hb-same { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hb-same-card { background: #fff; border: 1px solid var(--hb-line); border-radius: 12px; padding: 24px; }
.hb-same-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.hb-same-num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; margin: 6px 0 14px; color: #c62828; }
.hb-same-card ul { margin: 0 0 14px; padding-left: 1.1em; color: var(--hb-muted); line-height: 1.8; font-size: .95rem; }
.hb-same-fix { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--hb-soft); font-weight: 600; font-size: .95rem; }
.hb-same-note { font-size: 12px; color: var(--hb-subtle); margin-top: 12px; }
@media (max-width: 760px) { .hb-same { grid-template-columns: 1fr; } }

/* ── Feature rows ─────────────────────────────────────────── */
.hb-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 40px 0; }
.hb-feature + .hb-feature { border-top: 1px dashed var(--hb-line); }
.hb-feature:nth-child(even) .hb-feature-text { order: 2; }
.hb-feature h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; margin: 0 0 12px; }
.hb-feature p { color: var(--hb-muted); line-height: 1.85; margin: 0 0 12px; }
.hb-feature .hb-q { display: inline-block; font-size: 13px; font-weight: 700; color: var(--hb-teal); margin-bottom: 8px; }
.hb-feature a.hb-more { font-size: .9rem; color: var(--accent); }
.hb-feature figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--hb-line); background: var(--hb-dark); }
.hb-feature figure img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hb-feature { grid-template-columns: 1fr; gap: 20px; }
  .hb-feature:nth-child(even) .hb-feature-text { order: 0; }
}

/* ── Cards ────────────────────────────────────────────────── */
.hb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hb-card { background: #fff; border: 1px solid var(--hb-line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.hb-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.hb-card p { margin: 0 0 12px; color: var(--hb-muted); line-height: 1.8; font-size: .95rem; }
.hb-card .hb-card-tag { font-size: 12px; font-weight: 700; color: var(--hb-teal); margin-bottom: 8px; }
.hb-card code, .hb-card pre { font-family: var(--font-mono); font-size: 12.5px; }
.hb-card pre { background: var(--hb-dark); color: #e6edf3; padding: 12px 14px; border-radius: 8px; overflow-x: auto; margin: auto 0 0; line-height: 1.6; }
.hb-card a { color: var(--accent); font-size: .9rem; margin-top: auto; }
@media (max-width: 900px) { .hb-cards { grid-template-columns: 1fr; } }

/* ── Comparison table ─────────────────────────────────────── */
.hb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; }
.hb-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.hb-table th, .hb-table td { border-bottom: 1px solid var(--hb-line); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.hb-table thead th { background: var(--hb-soft); font-size: .85rem; color: var(--hb-muted); white-space: nowrap; }
.hb-table td:first-child { font-weight: 600; white-space: nowrap; }
.hb-yes { color: var(--hb-teal); font-weight: 700; }

/* ── Limits / pricing ─────────────────────────────────────── */
.hb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hb-box { border: 1px solid var(--hb-line); border-radius: 12px; padding: 24px; background: #fff; }
.hb-box h3 { margin: 0 0 10px; font-size: 1.05rem; }
.hb-box ul { margin: 0; padding-left: 1.1em; line-height: 1.9; color: var(--hb-muted); }
.hb-price { font-size: 1.8rem; font-weight: 700; margin: 4px 0 8px; }
@media (max-width: 760px) { .hb-two { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.hb-faq details { border-bottom: 1px solid var(--hb-line); padding: 4px 0; }
.hb-faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; position: relative; list-style: none; line-height: 1.6; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--hb-subtle); font-size: 1.2rem; }
.hb-faq details[open] summary::after { content: "−"; }
.hb-faq details p { margin: 0 0 16px; color: var(--hb-muted); line-height: 1.85; }

/* ── Guide list ───────────────────────────────────────────── */
.hb-guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hb-guide-list a { display: block; height: 100%; border: 1px solid var(--hb-line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--hb-ink); background: #fff; }
.hb-guide-list a:hover { border-color: var(--accent); }
.hb-guide-list strong { display: block; margin-bottom: 6px; line-height: 1.5; }
.hb-guide-list span { display: block; font-size: .875rem; color: var(--hb-muted); line-height: 1.7; }
@media (max-width: 760px) { .hb-guide-list { grid-template-columns: 1fr; } }

/* ── Final CTA ────────────────────────────────────────────── */
.hb-final { text-align: center; padding: 80px 0; background: var(--hb-dark); color: #e6edf3; }
.hb-final h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 12px; }
.hb-final p { color: #9aa4b2; margin: 0 0 26px; }

/* ── Footer ───────────────────────────────────────────────── */
.hb-footer { border-top: 1px solid var(--hb-line); padding: 48px 24px 56px; background: #fff; }
.hb-footer-cols { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.hb-footer-cols a { display: block; color: var(--hb-muted); text-decoration: none; font-size: .85rem; line-height: 2; }
.hb-footer-cols a:hover { color: var(--accent); }
.hb-footer-brand { font-weight: 700; margin: 0 0 8px; }
.hb-footer-note { font-size: .8rem; color: var(--hb-subtle); line-height: 1.7; margin: 0; }
.hb-footer-h { font-size: .8rem; font-weight: 700; color: var(--hb-ink); margin: 0 0 6px; }
@media (max-width: 900px) { .hb-footer-cols { grid-template-columns: 1fr 1fr; } }

/* ── Guide article ────────────────────────────────────────── */
.hb-article-wrap { max-width: 780px; margin: 0 auto; padding: 32px 24px 72px; }
.hb-crumbs { font-size: .8rem; color: var(--hb-subtle); margin-bottom: 18px; }
.hb-crumbs a { color: var(--hb-muted); text-decoration: none; }
.hb-crumbs span { margin: 0 6px; }
.hb-article h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
.hb-article-meta { font-size: .8rem; color: var(--hb-subtle); margin: 0 0 28px; }
.hb-article .hb-lead { font-size: 1.1rem; line-height: 1.9; color: var(--hb-ink); margin: 0 0 28px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--hb-soft); }
.hb-article h2 { font-size: 1.45rem; line-height: 1.45; margin: 48px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--hb-line); }
.hb-article h3 { font-size: 1.12rem; margin: 30px 0 10px; }
.hb-article p, .hb-article li { line-height: 1.95; font-size: 1rem; color: #262a33; }
.hb-article ul, .hb-article ol { padding-left: 1.4em; }
.hb-article a { color: var(--accent); }
.hb-article code { font-family: var(--font-mono); font-size: .9em; background: var(--hb-soft); padding: 1px 5px; border-radius: 4px; }
.hb-code { background: var(--hb-dark); color: #e6edf3; padding: 16px 18px; border-radius: 8px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.hb-code code { background: none; padding: 0; color: inherit; }
.hb-fig { margin: 24px 0; }
.hb-fig img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hb-line); }
.hb-fig figcaption { font-size: .82rem; color: var(--hb-subtle); margin-top: 8px; line-height: 1.6; }
.hb-note { border: 1px solid var(--hb-line); background: var(--hb-soft); border-radius: 8px; padding: 14px 18px; margin: 20px 0; font-size: .95rem; }
.hb-note p { margin: 0; }
.hb-article-cta { margin: 48px 0 0; padding: 26px 28px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.hb-article-cta-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
.hb-article-cta p { margin: 0 0 16px; }
.hb-related { margin-top: 48px; }
.hb-related h2 { font-size: 1.1rem; border: 0; margin: 0 0 8px; }
.hb-related ul { padding-left: 1.2em; }

/* ── MT5 report analyser ──────────────────────────────────── */
.mt5-hero h1 { max-width: 900px; }
.mt5-hero .hb-hero-lead { max-width: 820px; }
.mt5-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 16px; }
.mt5-drop {
  position: relative; display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  border: 2px dashed var(--hb-line); border-radius: 12px; padding: 22px 22px 20px 64px; background: #fff;
  transition: border-color .15s, background .15s;
}
.mt5-drop:hover, .mt5-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, #fff); }
.mt5-drop-step { position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--hb-soft); display: grid; place-items: center; font-weight: 700; color: var(--hb-muted); }
.mt5-drop-sub { font-size: .85rem; color: var(--hb-muted); }
.mt5-drop-name { font-size: .85rem; font-weight: 600; color: var(--hb-teal); min-height: 1.2em; }
.mt5-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mt5-actions .hb-btn { font-size: .95rem; padding: 10px 18px; cursor: pointer; font-family: inherit; }
.mt5-status { margin: 14px 0 0; font-size: .9rem; color: var(--hb-muted); min-height: 1.4em; }
.mt5-status.is-error { color: #c62828; }
.mt5-status.is-warn { color: #a15c00; }
.mt5-status.is-ok { color: var(--hb-teal); }
.mt5-meta { color: var(--hb-muted); font-size: .9rem; margin: 0 0 14px; }
.mt5-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mt5-card { border: 1px solid var(--hb-line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.mt5-card span { display: block; font-size: .78rem; color: var(--hb-muted); margin-bottom: 6px; }
.mt5-card strong { font-size: 1.15rem; font-family: var(--font-mono); }
.mt5-h { font-size: 1.3rem; margin: 40px 0 14px; }
.mt5-h3 { font-size: 1rem; margin: 0 0 10px; }
.mt5-hints { display: grid; gap: 12px; }
.mt5-hint { border: 1px solid var(--hb-line); border-left-width: 4px; border-radius: 8px; padding: 14px 18px; background: #fff; }
.mt5-hint p { margin: 0 0 6px; line-height: 1.8; color: var(--hb-muted); }
.mt5-hint .mt5-hint-title { color: var(--hb-ink); font-weight: 700; }
.mt5-hint--warn { border-left-color: #e0a100; }
.mt5-hint--key { border-left-color: var(--accent); }
.mt5-hint--info { border-left-color: var(--hb-teal); }
.mt5-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.mt5-splitbar { display: flex; height: 34px; border-radius: 8px; overflow: hidden; font-size: .85rem; font-weight: 700; color: #fff; }
.mt5-splitbar > div { display: grid; place-items: center; min-width: 28px; }
.mt5-splitbar .is-exit, .mt5-legend i.is-exit { background: #e0a100; }
.mt5-splitbar .is-mid, .mt5-legend i.is-mid { background: #b8bec9; }
.mt5-splitbar .is-entry, .mt5-legend i.is-entry { background: #d64545; }
.mt5-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 24px; font-size: .85rem; color: var(--hb-muted); }
.mt5-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.mt5-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.mt5-scatter { width: 100%; height: auto; background: #fff; border: 1px solid var(--hb-line); border-radius: 8px; }
.mt5-scatter text { font-size: 11px; fill: var(--hb-subtle); font-family: var(--font-mono); }
.mt5-scatter text.ax { font-family: inherit; fill: var(--hb-muted); font-size: 12px; }
.mt5-scatter .g { stroke: #eef0f3; }
.mt5-scatter circle.w { fill: rgba(14, 154, 167, .65); }
.mt5-scatter circle.l { fill: rgba(214, 69, 69, .6); }
.mt5-muted { font-size: .85rem; color: var(--hb-muted); }
.mt5-table td { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; }
.mt5-table td:first-child { font-weight: 400; }
.mt5-cta { margin-top: 40px; }
.mt5-doc { max-width: 820px; }
@media (max-width: 900px) {
  .mt5-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt5-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mt5-drops { grid-template-columns: 1fr; }
  .mt5-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── MT5 app page ─────────────────────────────────────────── */
.mt5-app { padding-top: 28px; padding-bottom: 64px; }
.mt5-app-h1 { font-size: 1.6rem; margin: 0 0 6px; }
.mt5-app-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; margin-top: 20px; align-items: start; }
.mt5-lib { position: sticky; top: 84px; border: 1px solid var(--hb-line); border-radius: 12px; padding: 16px; background: #fff; }
.mt5-lib-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mt5-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 46vh; overflow-y: auto; }
.mt5-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 6px; border-radius: 8px; }
.mt5-list li.is-active { background: var(--hb-soft); }
.mt5-list input { margin-top: 4px; }
.mt5-item { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt5-item strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt5-item span { font-size: .76rem; color: var(--hb-muted); }
.mt5-compare-btn { width: 100%; font-size: .9rem; padding: 10px; border: 0; cursor: pointer; font-family: inherit; }
.mt5-compare-btn:disabled { opacity: .4; cursor: default; }
.mt5-import { margin-top: 14px; border-top: 1px solid var(--hb-line); padding-top: 12px; }
.mt5-import summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.mt5-import .hb-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; font-size: .9rem; padding: 10px; }
.mt5-import .hb-btn:disabled { opacity: .4; }
.mt5-drop--sm { padding: 12px 14px; margin-bottom: 8px; }
.mt5-name { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--hb-line); border-radius: 8px; font: inherit; font-size: .9rem; margin-bottom: 8px; }
.mt5-main-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.mt5-title { font-size: 1.25rem; margin: 0; }
.mt5-head-actions { display: flex; gap: 14px; align-items: center; }
.mt5-head-actions .hb-btn { font-size: .88rem; padding: 8px 14px; cursor: pointer; font-family: inherit; }
.mt5-empty { border: 1px dashed var(--hb-line); border-radius: 12px; padding: 24px 28px; color: var(--hb-muted); line-height: 1.9; }
.mt5-pending { border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 5%, #fff); border-radius: 12px; padding: 18px 22px; margin-top: 16px; }
.mt5-pending p { margin: 0 0 8px; }
.mt5-pending .hb-btn { border: 0; cursor: pointer; font-family: inherit; font-size: .9rem; padding: 9px 16px; margin-right: 12px; }
.mt5-effect { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 8px; }
.mt5-effect div { border: 1px solid var(--hb-line); border-radius: 10px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.mt5-effect span { font-size: .78rem; color: var(--hb-muted); }
.mt5-effect strong { font-size: 1.1rem; }
.mt5-effect em { font-style: normal; font-family: var(--font-mono); font-size: .9rem; }
.mt5-ai { border: 1px solid var(--hb-line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 18px 0 0; background: #fff; }
.mt5-ai h4 { margin: 14px 0 4px; font-size: .9rem; }
.mt5-ai ul { margin: 0; padding-left: 1.2em; line-height: 1.8; color: var(--hb-muted); font-size: .92rem; }
@media (max-width: 900px) {
  .mt5-app-grid { grid-template-columns: 1fr; }
  .mt5-lib { position: static; }
  .mt5-effect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
