@font-face { font-family: 'Montserrat'; src: url('fonts/Montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #2B2E9B; --blue-8: #1E2075; --blue-4: #6B6ED6; --blue-1: #E6E7F8; --blue-0: #F3F3FC;
  --amber: #F7A600; --amber-7: #B87A00; --amber-1: #FFF2D1;
  --ink: #0B0D2E; --ink-2: #3B3D5C; --ink-3: #6B6D85; --line: #DCDDE6; --mist: #F4F5F8; --white: #fff;
  --ok: #12804A; --ok-1: #E3F4EA; --hold: #D0302F; --hold-1: #FBE6E5; --rej: #8E2A3A; --rej-1: #F6E4E8; --pend: #8A5B00;
  --side: 290px; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', system-ui, 'Segoe UI', sans-serif; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Montserrat', 'Inter', sans-serif; letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); }
a { color: var(--blue); }
code, .code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.9em; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
img { max-width: 100%; display: block; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .brand img { height: 34px; }
.topbar .spacer { flex: 1; }
.search { position: relative; width: min(380px, 40vw); }
.search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px 0 36px; font: inherit; font-size: 14px; background: var(--mist); outline: none; }
.search input:focus { border-color: var(--blue-4); background: #fff; box-shadow: 0 0 0 3px var(--blue-1); }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); }
.search kbd { position: absolute; right: 10px; top: 10px; font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; background: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; flex-shrink: 0; }
.lang a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-3); padding: 5px 10px; border-radius: 7px; letter-spacing: .04em; }
.lang a.on { background: var(--blue); color: #fff; }
.lang a:not(.on):hover { background: var(--mist); color: var(--ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; height: 40px; width: 40px; cursor: pointer; }
.top-link { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.top-link:hover { background: var(--mist); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; border-right: 1px solid var(--line); padding: 20px 14px 40px; background: #fff; }
.sidebar .group { margin: 18px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; position: relative; }
.sidebar a .n { font-family: 'Montserrat'; font-weight: 800; font-size: 11px; color: var(--blue); min-width: 20px; }
.sidebar a:hover { background: var(--mist); color: var(--ink); }
.sidebar a.active { background: var(--blue); color: #fff; font-weight: 600; }
.sidebar a.active .n { color: var(--amber); }
.sidebar a.hidden { display: none; }
.sidebar .empty { display: none; padding: 10px; font-size: 13px; color: var(--ink-3); }

main { min-width: 0; }
.content { max-width: 1060px; margin: 0 auto; padding: 0 40px 80px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 64px 40px 56px; background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.05) 22px 24px); }
.hero .inner { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin: 14px 0 16px; max-width: 680px; }
.hero p { font-size: 19px; color: rgba(255,255,255,.85); max-width: 680px; margin: 0; }
.hero .lanes { position: absolute; right: -60px; top: 40px; width: 300px; height: 70px; transform: skewX(-14deg); background: repeating-linear-gradient(180deg, var(--amber) 0 18%, transparent 18% 27%); opacity: .95; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 14px 16px; }
.stats b { display: block; font-family: 'Montserrat'; font-size: 26px; font-weight: 800; }
.stats span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ---------- sections ---------- */
section.doc { padding-top: 56px; }
section.doc > .kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
section.doc > h2 { font-size: 34px; font-weight: 800; margin: 8px 0 12px; }
section.doc > .lead { font-size: 18px; color: var(--ink-2); max-width: 820px; margin: 0 0 8px; }
h3 { font-size: 22px; font-weight: 800; margin: 36px 0 8px; }
h4 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
p { color: var(--ink-2); margin: 0 0 12px; }
ul, ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 14px; }
li { margin: 4px 0; }
li b, p b { color: var(--ink); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 48px 0 0; }

/* steps */
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; margin-top: 40px; }
.step .num { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: 'Montserrat'; font-weight: 800; font-size: 20px; position: relative; }
.step h3 { margin-top: 6px; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--blue-0); color: var(--blue-8); border: 1px solid var(--blue-1); margin-bottom: 8px; }
.who i { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; font-weight: 700; }

/* figures */
figure.shot { margin: 18px 0 8px; }
figure.shot .frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(11,13,46,.35); background: var(--mist); cursor: zoom-in; position: relative; }
figure.shot .frame::before { content: ''; display: block; height: 26px; background-color: #eceef4; background-image: radial-gradient(circle at 14px 13px, #ff5f57 0 5px, transparent 6px), radial-gradient(circle at 32px 13px, #febc2e 0 5px, transparent 6px), radial-gradient(circle at 50px 13px, #28c840 0 5px, transparent 6px); border-bottom: 1px solid var(--line); }
figure.shot img { width: 100%; transition: transform .25s; }
figure.shot .frame:hover img { transform: scale(1.01); }
figure.shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
figure.shot figcaption b { color: var(--ink-2); }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots-2 figure.shot { margin: 10px 0 0; }
figure.phone { max-width: 300px; }
figure.phone .frame { border-radius: 28px; border: 8px solid var(--ink); }
figure.phone .frame::before { display: none; }
.phones { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }

/* callouts */
.note { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 15px; border: 1px solid; }
.note p { margin: 0; color: inherit; }
.note .ic { font-weight: 800; font-family: 'Montserrat'; flex-shrink: 0; }
.note.info { background: var(--blue-0); border-color: var(--blue-1); color: var(--blue-8); }
.note.warn { background: var(--amber-1); border-color: #f5dc9c; color: #6b4700; }
.note.rule { background: var(--hold-1); border-color: #f2c4c3; color: #7d1a19; }
.note.ok { background: var(--ok-1); border-color: #bfe3cd; color: #0d5c35; }

/* cards & grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.card h4 { margin-top: 0; }
.card p { font-size: 14.5px; margin: 0; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 22px 0 8px; }
.flow .st { position: relative; padding: 16px 14px 16px 18px; background: var(--mist); border: 1px solid var(--line); }
.flow .st:first-child { border-radius: 12px 0 0 12px; }
.flow .st:last-child { border-radius: 0 12px 12px 0; }
.flow .st + .st { border-left: 0; }
.flow .st b { display: block; font-family: 'Montserrat'; font-size: 15px; color: var(--ink); }
.flow .st span { font-size: 12.5px; color: var(--ink-3); display: block; margin-top: 4px; line-height: 1.4; }
.flow .st i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; }
.flow .st:not(:last-child)::after { content: '›'; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; z-index: 1; font-size: 15px; line-height: 1; }
.flow .st.hold { background: var(--hold-1); border-color: #f2c4c3; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; background: var(--mist); font-weight: 700; color: var(--ink); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
tr:first-child td { border-top: 0; }
td.c { text-align: center; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #c5c7d3; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-draft { background: #eceef3; color: var(--ink-2); }
.s-pend { background: var(--amber-1); color: var(--pend); }
.s-appr { background: var(--blue-1); color: var(--blue); }
.s-ok { background: var(--ok-1); color: var(--ok); }
.s-hold { background: var(--hold); color: #fff; }
.s-rej { background: var(--rej-1); color: var(--rej); }
.s-out { box-shadow: inset 0 0 0 1.5px #a3a5b8; color: var(--ink-3); }

/* accounts */
.acct { display: flex; align-items: center; gap: 10px; }
.acct i { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-1); color: var(--blue); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; flex-shrink: 0; }

/* faq */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; background: #fff; }
details summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; font-family: 'Montserrat'; font-weight: 800; color: var(--blue); }
details[open] summary::after { content: '–'; }
details p { padding-bottom: 12px; }

/* search highlight */
section.doc.dim { opacity: .25; }
mark { background: var(--amber-1); color: inherit; padding: 0 2px; border-radius: 3px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11,13,46,.92); display: none; align-items: center; justify-content: center; padding: 56px 70px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: 14px; padding: 0 20px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; width: 46px; height: 46px; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox .close { top: 14px; right: 18px; }
.lightbox .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .count { position: absolute; top: 22px; left: 22px; color: rgba(255,255,255,.7); font-size: 13px; }

/* footer */
footer.site { margin-top: 70px; background: var(--ink); color: rgba(255,255,255,.75); padding: 36px 40px; }
footer.site .inner { max-width: 1060px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; font-size: 14px; }
footer.site img { height: 40px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(43,46,155,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* responsive */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow .st, .flow .st:first-child, .flow .st:last-child { border-radius: 0; border-left: 1px solid var(--line); }
  .flow .st:first-child { border-radius: 12px 12px 0 0; }
  .flow .st:last-child { border-radius: 0 0 12px 12px; }
  .flow .st + .st { border-top: 0; }
  .flow .st:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -11px; transform: translateX(-50%) rotate(90deg); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 64px; left: 0; width: 300px; z-index: 35; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 20px 0 40px -20px rgba(0,0,0,.25); }
  .menu-btn { display: inline-grid; place-items: center; }
  .content { padding: 0 20px 60px; }
  .hero { padding: 44px 20px 40px; }
  .g2, .g3, .shots-2 { grid-template-columns: 1fr; }
  .top-link { display: none; }
  .search kbd { display: none; }
  .step { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .step .num { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
  .hero .lanes { width: 160px; height: 44px; top: 18px; opacity: .8; }
  section.doc > h2 { font-size: 28px; }
  .search { width: 100%; }
  .topbar .brand img { height: 28px; }
}
@media print {
  .topbar, .sidebar, .to-top, .lightbox { display: none !important; }
  .layout { display: block; }
  section.doc { break-inside: avoid-page; }
  figure.shot { break-inside: avoid; }
}
