/* Password Art portal — design tokens and components (mockup docs/mockups/portal.png, v2) */
:root {
  --ink: #0B1220; --ink2: #334155; --mut: #475569; --faint: #94A3B8; --line: #E5E8EE; --soft: #F5F7FA; --bg: #fff;
  --a: #2563EB; --a2: #06B6D4; --dark: #0A0F1E; --ok: #059669; --okt: #D1FAE5; --warn: #B45309; --warnt: #FEF3C7; --bad: #DC2626; --badt: #FEE2E2;
  --r: 14px; --pill: 999px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--a); font-weight: 600; }
a.link:hover { text-decoration: underline; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 0; }
h2 { font-size: 28px; letter-spacing: -.025em; margin: 0; }
h3 { font-size: 17px; margin: 0; }
p { margin: 0; }
.mut { color: var(--mut); } .faint { color: var(--faint); } .sm { font-size: 14px; } .xs { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .05em; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.grad { background: linear-gradient(90deg, #60A5FA, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; border-radius: 6px; }

/* nav */
.nav { display: flex; align-items: center; gap: 26px; padding: 18px 36px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nav.clear { border-bottom: 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 22px; color: var(--a); }
.nav a.tab { font-weight: 500; color: var(--ink2); padding: 4px 0; }
.nav a.tab.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--a); }
.dark { background: var(--dark); color: #fff; }
.dark .nav { border-color: #1E293B; }
.dark .nav a.tab { color: #CBD5E1; } .dark .nav a.tab.on { color: #fff; }
.dark .brand svg { color: #60A5FA; }
.badge { font-size: 11px; font-weight: 800; background: #1E293B; color: #93C5FD; padding: 2px 8px; border-radius: var(--pill); letter-spacing: .04em; }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: var(--pill); background: var(--a); color: #fff; font-size: 12px; font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--pill); font: inherit; font-weight: 600; border: 1px solid #D5DAE2; background: #fff; color: var(--ink); white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: #A8B1BF; }
.btn.p { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.p:hover { background: #1E293B; }
.btn.g { background: linear-gradient(90deg, var(--a), var(--a2)); border: 0; color: #fff; }
.btn.w { background: #fff; border: 0; color: var(--ink); }
.btn.ghost { background: transparent; color: #fff; border-color: #334155; }
.btn.danger { color: var(--bad); border-color: #FCA5A5; }
.btn.s { height: 36px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(148, 163, 184, .18); }
.icon-btn svg, .ic { width: 18px; height: 18px; flex: none; }
/* tooltips for icon buttons (hover and keyboard focus) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 20; pointer-events: none; }

/* forms */
.f { display: flex; flex-direction: column; gap: 4px; }
.f label { font-size: 13px; font-weight: 600; color: var(--mut); }
.f textarea { border: 1.5px solid #CBD2DC; border-radius: 10px; font: inherit; font-size: 15px; padding: 10px 12px; color: var(--ink); background: transparent; resize: vertical; outline: none; }
.f textarea:focus { border-color: var(--a); }
.f input, .f select { height: 44px; border: 0; border-bottom: 1.5px solid #CBD2DC; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; color: var(--ink); border-radius: 0; outline: none; }
.f input:focus, .f select:focus { border-color: var(--a); }
.f.err input, .f.err select { border-color: var(--bad); }
.f .e { font-size: 13px; color: var(--bad); min-height: 0; }
.f .hint { font-size: 13px; color: var(--mut); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--mut); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.formerr { color: var(--bad); font-size: 14px; font-weight: 600; }
.code-in { display: flex; gap: 10px; }
.code-in input { width: 48px; height: 60px; text-align: center; font-family: ui-monospace, Menlo, monospace; font-size: 30px; font-weight: 600; border: 0; border-bottom: 2px solid #CBD2DC; outline: none; background: transparent; color: var(--ink); }
.code-in input:focus { border-color: var(--ink); }
.one-code { font-family: ui-monospace, Menlo, monospace; font-size: 28px; letter-spacing: .3em; text-align: center; height: 56px; border: 0; border-bottom: 2px solid #CBD2DC; width: 240px; outline: none; background: transparent; }
.one-code:focus { border-color: var(--ink); }

/* dark licence panel */
.lic { background: radial-gradient(120% 140% at 100% 0%, #1E3A8A 0%, var(--dark) 55%); color: #fff; border-radius: 20px; padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.lic .mut { color: #94A3B8; }
.lic .code { font-size: clamp(18px, 3.4vw, 26px); font-weight: 600; }
.lic .bar { height: 6px; border-radius: 9px; background: #1E293B; overflow: hidden; }
.lic .bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--a), var(--a2)); }
.lic .icon-btn { color: #94A3B8; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--pill); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill.warn { background: rgba(245, 158, 11, .16); color: #FBBF24; }
.pill.ok { background: rgba(16, 185, 129, .16); color: #34D399; }
.pill.bad { background: rgba(239, 68, 68, .16); color: #FCA5A5; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--okt); color: var(--ok); } .chip.warn { background: var(--warnt); color: var(--warn); } .chip.bad { background: var(--badt); color: var(--bad); } .chip.gray { background: #EEF0F3; color: var(--ink2); } .chip.blue { background: #DBEAFE; color: var(--a); }

/* lists */
.list { display: flex; flex-direction: column; }
.list .r { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list .r:last-child { border-bottom: 0; }
.list .r.click { cursor: pointer; }
.list .r.click:hover { background: var(--soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: #F59E0B; } .dot.gray { background: var(--faint); } .dot.bad { background: var(--bad); }
.empty { padding: 26px 0; color: var(--mut); }
.seg { display: inline-flex; background: var(--soft); border-radius: var(--pill); padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: var(--pill); font: inherit; font-weight: 600; color: var(--mut); font-size: 14px; cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; }
.note { background: var(--soft); border-radius: var(--r); padding: 16px 20px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.note.warn { background: var(--warnt); color: #78350F; }
.note .x { margin-left: auto; }
.dl { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border: 1px solid #D5DAE2; border-radius: var(--r); font-weight: 600; background: #fff; cursor: pointer; font: inherit; color: var(--ink); width: 100%; text-align: left; }
.dl:hover { border-color: #A8B1BF; }
.drop { border: 1.5px dashed #CBD2DC; border-radius: 16px; padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.drop.over { border-color: var(--a); background: #EFF6FF; }
.progress { height: 4px; border-radius: 9px; background: var(--soft); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--a2)); transition: width .2s; }
.qr svg { width: 196px; height: 196px; display: block; }
.qr { padding: 12px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: #fff; }

/* page frames */
.page { max-width: 1040px; margin: 0 auto; padding: 34px 36px 60px; display: flex; flex-direction: column; gap: 26px; }
.narrow { max-width: 640px; }
.center-box { max-width: 460px; margin: 70px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.center-box .f, .center-box form { width: 100%; text-align: left; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 100vh; }
.split .side { background: radial-gradient(120% 90% at 0% 100%, #1D4ED8 0%, var(--dark) 60%); color: #fff; padding: 40px 40px; display: flex; flex-direction: column; gap: 26px; }
.split .side .brand svg { color: #60A5FA; }
.split .main { padding: 40px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 640px; width: 100%; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-weight: 600; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }
dialog { border: 0; border-radius: 18px; padding: 28px; width: min(460px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(10, 15, 30, .35); }
dialog::backdrop { background: rgba(10, 15, 30, .45); }
dialog .stack { gap: 16px; }

/* home */
.hero { background: radial-gradient(90% 80% at 85% 10%, #1D4ED8 0%, #0B1530 45%, var(--dark) 75%); color: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.hero .nav { border: 0; }
.hero .nav a.tab { color: #CBD5E1; }
.hero .body { padding: 9vh 56px 40px; display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.hero .lead { font-size: 19px; color: #CBD5E1; max-width: 600px; }
.hero .feats { margin-top: auto; padding: 26px 56px 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid #1E293B; }
.hero .feats p { color: #94A3B8; font-size: 14px; margin-top: 4px; }
footer.site { display: flex; gap: 22px; flex-wrap: wrap; padding: 22px 56px; font-size: 13px; color: #94A3B8; background: var(--dark); border-top: 1px solid #1E293B; }

@media (max-width: 760px) {
  .nav { padding: 14px 16px; gap: 16px; }
  .page { padding: 24px 16px 48px; }
  .two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .side { padding: 28px 16px; }
  .split .side .big { display: none; }
  .split .main { padding: 28px 16px; }
  .hero .body { padding: 6vh 16px 30px; }
  .hero .feats { grid-template-columns: 1fr 1fr; padding: 22px 16px 30px; }
  footer.site { padding: 18px 16px; }
  .stats { gap: 24px; }
}
.h-mid { font-size: 44px; }
.lead { font-size: 18px; }
.split .side .hello { font-size: 38px; margin-top: 70px; }
.split .side .ticks { color: #CBD5E1; gap: 12px; }
.icon-btn .count { position: absolute; top: -4px; right: -8px; }
#tabs-links { gap: 26px; }
.f input[type=search] { border: 1.5px solid #CBD2DC; border-radius: 999px; padding: 0 18px; height: 42px; }
.stat .n.warn, .n.warn { color: var(--warn); }

/* bank-transfer invoice */
.payto { white-space: pre-line; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 15px; }
@media print {
  header, nav, .noprint, .toast, .note { display: none !important; }
  body { background: #fff; }
  .invoice { max-width: none; }
}

/* password box with a show / hide button */
.pw { position: relative; display: flex; }
.pw input { flex: 1; min-width: 0; padding-right: 44px; }
.pw .pw-eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

/* required-field mark */
.req { color: var(--bad); font-weight: 700; }

/* legal pages */
.legal h3 { margin-top: 10px; }
.legal p, .legal li { line-height: 1.6; }
ul.dots { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
ul.dots li { padding-left: 2px; }
