/* Black Ledger ERP, the interface tour (erp.subhanitrader.com). The website's brand (ink, warm paper, one brass accent, the
 * same self-hosted fonts); nothing is loaded from another site. Light and dark follow the visitor's setting. */
@font-face { font-family: "Fraunces Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ink: #0f0f11;
  --ink-2: #1c1c20;
  --paper: #f4f1ea;
  --brass: #c8a24a;
  --brass-hover: #d8b45a;
  --bg: light-dark(#f4f1ea, #0f0f11);
  --surface: light-dark(#faf8f3, #151518);
  --line: light-dark(#e4dfd3, #26262b);
  --fg: light-dark(#0a0a0b, #f4f1ea);
  --muted: light-dark(#55524b, #a9a59b);
  --accent: light-dark(#7d5f14, #d8b45a);
  --radius: 14px;
  --shadow: 0 30px 60px -30px rgb(10 10 11 / 0.45);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: "Fraunces Variable", Georgia, serif; font-weight: 560; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.7rem 1rem; background: var(--brass); color: var(--ink); font-weight: 600; border-radius: 8px; }
.skip:focus { top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0.6rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 "Inter Variable", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn-lg { min-height: 50px; padding: 0.8rem 1.4rem; font-size: 16px; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.btn-ghost:hover { border-color: currentColor; }

.top { position: sticky; top: 0; z-index: 50; background: rgb(10 10 11 / 0.82); color: var(--paper); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgb(244 241 234 / 0.08); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; letter-spacing: -0.01em; }
.logo em { font-style: normal; color: var(--brass); font-weight: 600; margin-left: 2px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.top nav a:not(.btn) { text-decoration: none; opacity: 0.85; }
.top nav a:not(.btn):hover { opacity: 1; }

.hero { background: radial-gradient(1200px 500px at 85% -10%, rgb(200 162 74 / 0.18), transparent 60%), var(--ink); color: var(--paper); padding: 72px 0 84px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 15ch; }
.hero h1 span { color: var(--brass); font-style: italic; }
.lead { max-width: 60ch; margin: 20px 0 30px; font-size: clamp(16px, 1.5vw, 19px); color: rgb(244 241 234 / 0.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.tour { padding: 64px 0; }
.tour h2, .phone h2 { font-size: clamp(28px, 3.4vw, 42px); }
.sub { margin: 8px 0 28px; color: var(--muted); }
.tour-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-list { display: grid; gap: 4px; position: sticky; top: 88px; }
.tour-list .group { margin: 14px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tour-list .group:first-child { margin-top: 0; }
.tour-list button { width: 100%; padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; background: none; color: inherit; font: 500 15px/1.3 "Inter Variable", system-ui, sans-serif; text-align: left; cursor: pointer; }
.tour-list button:hover { background: var(--surface); border-color: var(--line); }
.tour-list button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tour-list button[aria-selected="true"]::after { content: ""; float: right; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--brass); }

.viewer { min-width: 0; }
.browser { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--ink-2); border-radius: var(--radius) var(--radius) 0 0; color: rgb(244 241 234 / 0.7); font-size: 12px; }
.browser i { width: 11px; height: 11px; border-radius: 50%; background: rgb(244 241 234 / 0.22); }
.browser span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: rgb(244 241 234 / 0.08); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screens { background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.screen { margin: 0; }
.screen + .screen { border-top: 1px solid var(--line); }
.screen a { display: block; cursor: zoom-in; }
.screen figcaption { padding: 14px 18px 16px; font-size: 15px; color: var(--muted); }
.screen figcaption b { color: var(--fg); }
.js .screen { display: none; }
.js .screen.is-on { display: block; }
.js .screen + .screen { border-top: 0; }
.viewer-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.no-js .viewer-nav, .no-js .browser { display: none; }

.phone { padding: 64px 0 80px; background: var(--surface); border-top: 1px solid var(--line); }
.phone-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: center; }
.phone-frame { padding: 10px; border-radius: 40px; background: var(--ink); box-shadow: var(--shadow); }
.phone-frame img { border-radius: 30px; }
.phone p { color: var(--muted); max-width: 52ch; }
.ticks { padding: 0; margin: 18px 0 26px; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.foot { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.zoom { width: min(1480px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: var(--ink); overflow: auto; }
.zoom::backdrop { background: rgb(10 10 11 / 0.82); }
.zoom form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: var(--ink); }

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-list { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .tour-list .group { display: none; }
  .tour-list button { width: auto; flex: none; border-color: var(--line); white-space: nowrap; }
  .tour-list button[aria-selected="true"]::after { display: none; }
  .phone-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .phone-frame { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
